Timeline for Express anonymous with formal parameters [duplicate]
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 30, 2016 at 23:42 | history | closed |
Leonid Shifrin CommunityBot |
Duplicate of Pure Functions with Lists as arguments | |
May 30, 2016 at 23:33 | review | Close votes | |||
May 30, 2016 at 23:43 | |||||
May 30, 2016 at 23:14 | comment | added | pdmclean |
I could do something like that (g[{a_, b_}, {c_, d_}] := {c + b/a, d + 1/a} ), but I want to do it anonymously with explicit parameters.
|
|
May 30, 2016 at 23:11 | history | edited | pdmclean | CC BY-SA 3.0 |
formatting, changed question
|
May 30, 2016 at 23:03 | comment | added | Marius Ladegård Meyer |
The error message is pretty self-explanatory isn't it? Is there some reason you can't do g[{{a_, b_}, {c_, d_}}] := {c + b/a, d + 1/a} ?
|
|
May 30, 2016 at 22:56 | history | asked | pdmclean | CC BY-SA 3.0 |