RosettaCodeData/Task/Apply-a-callback-to-an-array/Lang5/apply-a-callback-to-an-arra...

4 lines
91 B
Plaintext

: square(*) dup * ;
[1 2 3 4 5] square . "\n" .
[1 2 3 4 5] 'square apply . "\n" .