ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   5 Data and Control Flow   5.3 Dictionary of Data and Control Flow

5.3.10 functionp Function

Syntax:
functionp object    generalized-boolean

Arguments and Values:
object - an object.

generalized-boolean - a generalized boolean.

Description:
Returns true if object is of type function; otherwise, returns false.

Examples:
 (functionp 'append)  false
 (functionp #'append)  true
 (functionp (symbol-function 'append))  true
 (flet ((f () 1)) (functionp #'f))  true
 (functionp (compile nil '(lambda () 259)))  true
 (functionp nil)  false
 (functionp 12)  false
 (functionp '(lambda (x) (* x x)))  false
 (functionp #'(lambda (x) (* x x)))  true

Notes:
 (functionp object) ==(typep object 'function)

Allegro CL Implementation Details:
None.

Home Previous Up Next Table of Contents Index
© Franz Inc. 1998-2019 - File last updated 02-07-2019