Apply a callback to an array: Difference between revisions
Content added Content deleted
(F#) |
(added slate language) |
||
Line 1,015: | Line 1,015: | ||
L |
L |
||
(cons (f (car L)) (map f (cdr L))))) |
(cons (f (car L)) (map f (cdr L))))) |
||
</lang> |
|||
=={{header|Slate}}== |
|||
<lang slate> |
|||
#( 1 2 3 4 5 ) collect: [| :n | n * n]. |
|||
</lang> |
</lang> |
||