Apply a callback to an array: Difference between revisions

Content added Content deleted
Line 724: Line 724:
( Add 1 to each item in the array )
( Add 1 to each item in the array )
a 5 [ 1 + ] map-array
a 5 [ 1 + ] map-array

=={{header|V}}==
apply squaring (dup *) to each member of collection
[1 2 3 4] [dup *] map


=={{header|Visual Basic .NET}}==
=={{header|Visual Basic .NET}}==