Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: do-repeated , Previous: do-proplist , Up: D , Home: Overview

Clamps Dictionary

do-proplist/collecting

Macro

(do-proplist/collecting (keysym valuesym) proplist &body body)

Like do-proplist but collecting the result. All keys and values of proplist are bound to the symbols keysym and valuesym in the lexical scope of body.

Arguments

keysym Symbol bound to all keys of the property list.
valuesym Symbol bound to all values of the property list.
proplist Property list to be traversed.

Examples

(do-proplist/collecting (key val) '(:a 2 :b 5 :c 4)
  (list key (1+ val)))
;; => ((:a 3) (:b 6) (:c 5))

Author: Orm Finnendahl

Created: 2025-02-18 Di 12:58

Validate