Arrow syntax
Anonymous functions can be created using the -> syntax. This is useful for passing functions to higher-order functions, such as the map function. The below function computes the square of each number in an array A.
squareall(A) = map(x -> x ^ 2, A)
An example of using this fu...