I am trying to generate a function that applies to each argument for any number and type of arguments. The function might work like this:
m = {{1, 2}, {3, 4}}; (* matrix *)
v = {1, 2, 1}; (*a vector *)
b = 10; (* a scalar *)
f[x__] := p[x] (* not sure what the function would like but this is probably close *)
f[m, v, b] (* notice arguments are not in a list n*)
(* Out: {p[m], p[v], p[b]} (*desired output *)
How would I set up such a function? How should attributes be set?
List
? $\endgroup$