Anonymous user
First-class functions/Use numbers analogously: Difference between revisions
First-class functions/Use numbers analogously (view source)
Revision as of 16:13, 27 July 2013
, 10 years ago→{{header|Factor}}: no need to inline multiplier
(→{{header|Factor}}: Compare to http://rosettacode.org/wiki/First-class_functions) |
(→{{header|Factor}}: no need to inline multiplier) |
||
Line 366:
CONSTANT: B ${ xi yi zi }
: multiplier ( n1 n2 -- q ) [ * * ] 2curry ;
: create-all ( seq1 seq2 -- seq ) [ multiplier ] 2map ;
: example ( -- )
|