Closures/Value capture: Difference between revisions
m
→Explicit version
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:
slist=: constF"0 *:i.10</lang>
Referencing a function by its index (its position in that list):
<lang j> flist @.3
Line 831:
9"_</lang>
Using a function, given its index:
<lang j> flist @.4''
|