RosettaCodeData/Task/Higher-order-functions/Smalltalk/higher-order-functions-2.st
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

2 lines
64 B
Smalltalk

function := [:x | x * 3 - 1].
#(1 1 2 3 5 8) collect: function.