How to make Array as in following example but without list variable as first argument, but only as last postfix argument ?
list = {100, 200, 300, 400, 500};
Array[list[[#]] &, Length[#]] &@list
Expected result:
{100, 200, 300, 400, 500}
EDIT: I'm expect 1st argument in the form body &, and not something like Function[x, body] or definition of new nonpure function.
list = {100, 200, 300, 400, 500}; f[n_] := list[[n]]; Array[f, Length@list]and it is simpler also :) – Nasser Nov 20 '17 at 22:23