Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Question about function
Posted:
Jan 18, 2012 6:05 AM


I define the following function:
xPrint[x_]:=(Print[HoldForm[x]," =",Tab,x]); Attributes[xPrint]={HoldAll,Listable}; a=5; xPrint[a]
> a = 5
I want to modify this code such that it can handle multiple arguments. For example,
a=5; b=6; xPrint[a,b]
> a = 5 > b = 6
How do I get the argument one by one and feed it into Print[]?



