Tells the Visual LISP compiler to link and optimize an argument as if it were a built-in function
Supported Platforms: Windows only
(function symbol | lambda-expr)
Type: Symbol
A symbol naming a function.
Type: Subroutine or List
An expression of the following form:
(LAMBDA arguments {S-expression}*)
The result of the evaluated expression.
The 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.
Compiled lambda expressions that are quoted by function will contain debugging information when loaded into the Visual LISP IDE.
The Visual LISP compiler cannot optimize the quoted lambda expression in the following code:
(mapcar '(lambda (x) (* x x)) '(1 2 3))
After adding the function function to the expression, the compiler can optimize the lambda expression. For example:
(mapcar (function (lambda (x) (* x x))) '(1 2 3))