Cind language documentation

Function execution

The function execution is a statement, that calls function with given parameters.
General semantic of the function execution can be written as

f v

where f is a function (see Functions) and v is a vector of parameters passed to the function.
In fact, v can be also any other object, which will be treated as a 1-element vector (see Vector of values).

f(x,y) (x->x+1) 10 ((x->y->(x y)) (x->2*x)) 3 host.println("Hello")

When, in function execution statement f v, expression f is not a function, then it will be treated as a constant function, ie:

1("a") --> (x->1)("a") --> 1

Statement of the function execution is evaluated from right to left, that is:

f g h = f (g h) = f (g (h)) = f ((g) (h)) = (f) (g) (h)

Compiler requires that function execution statement must be written in one line.
This is because semicolons ending instructions are quite often forgotten. And the forgotten semicolon could be understood as a statement of function execution of two instructions.

Cind programming language 1.0.4