User Tools


Function COMPILED-FUNCTION-P

Syntax

  • compiled-function-p objectgeneralized-boolean

Arguments and Values

Description

Returns true if object is of type compiled-function; otherwise, returns false.

Examples

(defun f (x) x)

F

(compiled-function-p #'f)

false or true

(compiled-function-p 'f)

false

(compile 'f)

F

(compiled-function-p #'f)

true

(compiled-function-p 'f)

false

(compiled-function-p (compile nil '(lambda (x) x)))

true

(compiled-function-p #'(lambda (x) x))

false or true

(compiled-function-p '(lambda (x) x))

false

Side Effects

None.

Affected By

None.

Exceptional Situations

None.

See Also

Notes

(compiled-function-p object) ≡ (typep object 'compiled-function)