RosettaCodeData/Task/Apply-a-callback-to-an-array/SenseTalk/apply-a-callback-to-an-array-1.sensetalk
2023-07-01 13:44:08 -04:00

7 lines
152 B
Text

put each item in [1,2,3,5,9,14,24] squared
put myFunc of each for each item of [1,2,3,5,9,14,24]
to handle myFunc of num
return 2*num + 1
end myFunc