Apply a callback to an array: Difference between revisions
Content added Content deleted
(Add Brat example) |
|||
Line 625: | Line 625: | ||
callback"_1 array |
callback"_1 array |
||
1 4 9 16 25</lang> |
1 4 9 16 25</lang> |
||
But note that this is a trivial example since <code>*: 1 2 3 4 5</code> would get the same result. Then again, this is something of a trivial exercise in J since all of J is designed around the idea of applying functions usefully to arrays. |
|||
=={{header|Java}}== |
=={{header|Java}}== |