User Tools


Function GET-PROPERTIES

Syntax

  • get-properties plist indicator-listindicator, value, tail

Arguments and Values

Description

get-properties is used to look up any of several property list entries all at once.

It searches the plist for the first entry whose indicator is identical to one of the objects in indicator-list. If such an entry is found, the indicator and value returned are the property indicator and its associated property value, and the tail returned is the tail of the plist that begins with the found entry (i.e. whose car is the indicator). If no such entry is found, the indicator, value, and tail are all nil.

Examples

(defparameter *x* '())

*X*

(defparameter *indicator-list* '(prop1 prop2))

*INDICATOR-LIST*

(getf *x* 'prop1)

NIL

(setf (getf *x* 'prop1) 'val1)

VAL1

(eq (getf *x* 'prop1) 'val1)

true

(get-properties *x* *indicator-list*)

PROP1 VAL1 (PROP1 VAL1)

*x*

(PROP1 VAL1)

Side Effects

None.

Affected By

None.

Exceptional Situations

None.

See Also

Example Implementation

To be done.

Notes

None.

\issue{PLIST-DUPLICATES:ALLOW}