Anonymous user
First-class functions/Use numbers analogously: Difference between revisions
First-class functions/Use numbers analogously (view source)
Revision as of 15:43, 6 December 2010
, 13 years ago→{{header|J}}: align with established pattern
(Use 'curry', compare to "First class functions") |
(→{{header|J}}: align with established pattern) |
||
Line 275:
=={{header|J}}==
This seems to satisfy the new problem statement:
<lang j> x =: 2.0
xi =: 0.5
y =: 4.0
yi =: 0.25
z =: x + y
zi =: 1.0 % (
fwd =: x ,y ,z
rev =: xi,yi,zi
Example use:
<lang>
▲6 3 2</lang>
=={{header|Mathematica}}==
|