Function identity

Syntax:

identity object β†’ object

Arguments and Values:

objectβ€”an object.

Description:

25.5.0 2Returns its argument object.

Examples:

 (identity 101) β†’ 101
 (mapcan #'identity (list (list 1 2 3) '(4 5 6))) β†’ (1 2 3 4 5 6)

Side Effects:

None.

Affected By:

None.

Exceptional Situations:

None.

See Also:

None.

Notes:

identity is intended for use with functions that require a function as an argument.

(eql x (identity x)) returns true for all possible values of x, but (eq x (identity x)) might return false when x is a number or character.

identity could be defined by

(defun identity (x) x)