Hi all,
to illustrate my question, I will use this toy example.
I would like to print the symbol names along with the length of the lists they're attached to. Like:
a = Range[1, 5];
b = Range[1, 10];
Print[SymbolName@Unevaluated@a, ": ", Length@a]
Print[SymbolName@Unevaluated@b, ": ", Length@b]
This works fine. But now, I would like to do that with Map:
Print[SymbolName@Unevaluated@#, ": ", Length@#] & /@ {a, b}
This doesn't work. It seems that the mapping evaluates the elements before to apply them to my pure function. Any help would be nice.Thanx,
Fabrice