Tells the Visual LISP compiler to link and optimize an argument as if it were a built-in function
(function symbol | lambda-expr)
function function is identical to the quote function, except it tells the Visual LISP compiler to link and optimize the argument as if it were a built-in function or defun.
Thelambda expressions that are quoted by function will contain debugging information when loaded into the Visual LISP IDE.
CompiledArguments
A symbol naming a function.
An expression of the following form:
(LAMBDA arguments {S-expression}* )
Return Values
The result of the evaluated expression.
Examples
lambda expression in the following code:
The Visual LISP compiler cannot optimize the quoted(mapcar
'(lambda (x) (* x x))
'(1 2 3))
function function to the expression, the compiler can optimize the lambda expression. For example:
After adding the(mapcar
(function (lambda (x) (* x x)))
'(1 2 3))