[Contents] · [Home] · [Mail]

SALIERI Language - apply

Type:
apply: function x object x object x ... -> [object]

Call syntax:
apply(f, par_1, par_2, ...)

Description:
apply calls function f with formal parameters par_1, par_2, ... . If f produces a result, this is returned by apply. apply provides an alternative way for function calling, it is mainly used to apply functional objects to parameters, as in higher-order functions. Of course, apply can also be used to call parameter-less functions.

Error conditions:
Error conditions occur, when applying function f to the specified parameters causes an error.

Example:
> apply("write", 1,2,3)
123
> apply(FUNC(1,x:=1; return(x+retro(x)),"abc")
Result = "abccba"

See also: FUNC, MACRO, Blocks.


[Contents] · [Home] · [Mail]
© sic!systems, page frame designed by hh; this page has been automatically generated from the SALIERI Documentation Database.