Fun
x↦x2Defines a univariate function mapping the symbol given as the first argument to the expression in the second argument. The symbol x representing the dummy variable becomes locally bound within the function expression. This function is improper; that is, it does not belong to a particular function space.
(x↦x2)(42)Calling a named function.
f(42) where f(x)=x2Calling a function assigned to a variable.
(x,y)↦2x+3yDefines a bivariate function. The symbols x and y become locally bound.
(x)↦x2Equivalent to defining a univariate function.
(x1,x2,…,xn)↦i=1∑nixiDefines a multivariate function with arity n. In this special case, the variable binding x_ in the scope of the Tuple call propagates through to the Fun operator.
g(c2,c3) where cn=n2+n+1,g(x,y)=(x+y)(x−y)Defining and calling named improper functions in the context of a Where-expression.
Last updated: 2020-03-06 00:22:16