Apply a callback to an array: Difference between revisions

Content added Content deleted
(→‎{{header|Haskell}}: (^ 2) <$> [1..10])
Line 894: Line 894:
program =
program =
[
[
(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) run &each:(:n) [ console writeLine:(n * n) ].
(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) run each:(:n) [ console writeLine:(n * n) ].
].</lang>
].</lang>