《通链参考手册》


Function GET-PROPERTIES

●语法设定:

get-properties plist indicator-list => indicator, value, tail

●参数和值:

plist---a property list.

indicator-list---a proper list (of indicators).

indicator---an object that is an element of indicator-list.

value---an object.

tail---a list.

●详情:

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.

●例子:

 (setq x '()) =>  NIL
 (setq *indicator-list* '(prop1 prop2)) =>  (PROP1 PROP2)
 (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)

●副作用: None.

●受制于: 无。

●例外情况: 无。

●更多信息:

get, getf

●说明: 无。


X3J13设计清单非标准部分,可查下面章节:


◇首页 § ◎章节目录 § □内容索引 § ○符号索引 § △术语表 § ※设计草案