Using nested slots (#)
问题 Suppose I want to construct something like Array[#1^#2 == 3 &, {3, 3}] And now I want to replace the "3" with a variable. I can do, for example: f[x_] := Array[#1^#2 == x &, {x, x}] The question is: Is there a way using only slots and & as the functional notation? 回答1: How about Map[Last, #] & /@ Array[#1^#2 == #3 &, {#, #, #}] &[3] Horrendously ugly element extraction, and very interestingly Map[Last, #]& gives me a different result than Last /@ . Is this due to the fact that Map has