(x) -> e -- denotes a function of one argument. When the function is applied to an expression w three things may happen:
(x,y) -> e -- denotes a function of two arguments.
Similarly for more arguments.
These operations create what is usually called a closure , which signifies that the function remembers the values of local variables in effect at the time of its creation, can change those values, and share the changes with other functions created at the same time.
i1 = f = x -> 2*x+1 o1 = f o1 : Function
The class of all functions is Function.
Go to main index.
Go to concepts index.