Apply a callback to an array: Difference between revisions

(→‎{{header|Insitux}}: implementation)
Line 1,539:
 
{{FormulaeEntry|page=https://formulae.org/?script=examples/Apply_a_callback_to_an_array}}
 
'''Solution'''
 
Most programming languages define a high-order map function. In Fōrmulæ, there is ''arraization'' (by analogy with ''summation''). In the following expression, the "big" curly braces resemble the "big" sigma of a summation:
 
[[File:Fōrmulæ - Apply a callback to an array 01.png]]
 
[[File:Fōrmulæ - Apply a callback to an array 02.png]]
 
The elements of the array are not required to be of the same type:
 
[[File:Fōrmulæ - Apply a callback to an array 03.png]]
 
[[File:Fōrmulæ - Apply a callback to an array 04.png]]
 
=={{header|GAP}}==
2,120

edits