Apply a callback to an array: Difference between revisions

Content added Content deleted
(→‎[[Toka]]: VB.Net Added)
Line 642: Line 642:
( 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

==[[Visual Basic .NET]]==
[[Category:Visual Basic .NET]]

'''Platform:''' [[.NET]]

'''Language Version:''' 9.0+

Dim intArray As Integer() = {1, 2, 3, 4, 5}
Array.ForEach(intArray, Function(i) Console.WriteLine(i * i))