Is there a way to make the Function construct accept a list as argument ?
Writing
Function[{x,y},{x+y,x-y}]
does not work, since it accepts two arguments and not a single list.
My aim is to generate a table of functions, say
Table[Function[{x,y},{x + k y,x - k y}] , {k,1,10}]
and then to compose them in different ways. Since every such function returns a list, I would like it also to accept a list, to enable composition.
Function[list, {list[[1]] + list[[2]], list[[1]] - list[[2]]}][{a, b}]– Quantum_Oli Feb 28 '16 at 13:21