Clamps Dictionary
get-props-list
Function
(get-props-list proplist props &key (force-all nil))
Return a new property list containing props and their values extracted from proplist. Properties not present in proplist are ignored. If force-all is non-nil, also return properties not present in proplist with nil as value.
Arguments
proplist |
Property list. |
props |
Properties to extract from proplist. |
:force-all |
Boolean to indicate if non-present props should get included in result. |
Examples
(get-props-list '(:a 1 :b 2 :c 3 :d "Foo") '(:d :a)) ; => (:d "Foo" :a 1) (get-props-list '(:a 1 :b 2 :c 3 :d "Foo") '(:a :e)) ; => (:a 1) (get-props-list '(:a 1 :b 2 :c 3 :d "Foo" :a 4) '(:a :e) :force-all t) ; => (:a 1 :e nil)
Created: 2025-02-18 Di 12:58