apply

apply

apply

Syntax (apply lambda list) → return value of lambda
Arguments lambda: The function (lambda) you want to run.
list: A list of arguments you want the function to be run with.
Returns Whatever the lambda returns.
Category function operator'
Description Runs the function as though it was called normally using the list as its arguments.

Example

(block (someArgumentList)
	(setq someArgumentList '(True True Nil))
	(apply and someArgumentList)
	)

This will return Nil.

(block (someArgumentList) 
	(setq someArgumentList '(1 34))
	(apply add someArgumentList)
	)

This will return 35.

Return to Functions list