RosettaCodeData/Task/Apply-a-callback-to-an-array/NGS/apply-a-callback-to-an-arra...

4 lines
35 B
Plaintext

{
[1, 2, 3, 4, 5].map(F(x) x*x)
}