Closures/Value capture: Difference between revisions
Content added Content deleted
m (added whitespace and highlighting to the task's preamble, used a larger font to show the expressions so that the italics and superscripts are easier to read.) |
|||
Line 824: | Line 824: | ||
slist=: constF"0 *:i.10</lang> |
slist=: constF"0 *:i.10</lang> |
||
Referencing a function: |
Referencing a function by its index (its position in that list): |
||
<lang j> flist @.3 |
<lang j> flist @.3 |
||
Line 831: | Line 831: | ||
9"_</lang> |
9"_</lang> |
||
Using a function: |
Using a function, given its index: |
||
<lang j> flist @.4'' |
<lang j> flist @.4'' |