RosettaCodeData/Task/Higher-order-functions/FALSE/higher-order-functions.false

6 lines
185 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
[f:[$0>][@@\f;!\1-]#%]r: { reduce n stack items using the given basis and binary function }
1 2 3 4 0 4[+]r;!." " { 10 }
1 2 3 4 1 4[*]r;!." " { 24 }
1 2 3 4 0 4[$*+]r;!. { 30 }