Higher-order functions: Difference between revisions
m
→{{header|Quackery}}: added some more commentary
Not a robot (talk | contribs) (Add Draco) |
m (→{{header|Quackery}}: added some more commentary) |
||
Line 3,572:
Then test them in the Quackery shell by summing a nest of numbers, recursively flattening a deeply nested nest, reversing every string in a nest of strings, and removing all the negative numbers from a nest of numbers.
For another example of usage of <code>map</code> and <code>filter</code>, see <code>countchars</code> in [[Huffman coding#Quackery]].
<pre>/O> ' [ 1 2 3 4 5 6 7 8 9 10 ] ' + fold echo
|