We want to define a function of substitution (as a pure function) which can apply to a number or to a list. This desired function is as
/.{I -> -I, -I -> I} However this work will do by Conjugate, but we do not want to use that.
For example: list={I, 2, b, I b, -I b};
list/.{I -> -I, -I -> I}={-I, 2, b, -I b, I b}; The desired format is F[list]={-I, 2, b, -I b, I b}; This procedure even should be apply just for a number as I/.{I -> -I, -I -> I}=-I. How can we write F? For instant: Map[/.{I -> -I, -I -> I}, list] or conj[# _] & = {I -> -I, -I -> I} /@ #; which are written too bad.
f = # /. {I -> -I, -I -> I} &;$\endgroup$Conjugateand symbols. You will get more help if you make your question as clear as possible. You have some typos (./needs to be/.) $\endgroup$Conjugatebut I am hopeless to use that correctly. $\endgroup$