Higher-order functions: Difference between revisions

Line 1,731:
second := [ 'second' ].
Transcript show: (first value: second).</lang>
<lang Smalltalk>function := [:x | x * 3 - 1].
#(1 1 2 3 5 8) collect: function.</lang>
 
=={{header|Standard ML}}==
Anonymous user