Hello
I defined a function this way
(* myfunction[{parm1_,parm2_},parm3_] := ......*)
And I would like to map it in order to get :
{myfunction[{a1,a2},a3],myfunction[{b1,b2},b3]}
The best I achieved so far is
myfunction /@ {{{a1, a2}, a3}, { {b1, b2}, b3 }}
(* {myfunction[{{a1, a2}, a3}], myfun[{{b1, b2}, b3}]} answer *)
I have one pair brackets to much but if I remove if from the Map
parameter list the code is incomplete.
myfunction /@ {{a1, a2}, a3, {b1, b2}, b3} (* not right *)
Is it possible to use it in a pure function such as :
myfunction [{#1, #2}, #3] &
myfunction[{#1}, #2] & (* alternative*)
If so what should follow the &
in order to get as before
{myfunction[{a1,a2},a3],myfunction[{b1,b2},b3]}
Thanks