Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: v-collect , Previous: update-state , Home: Overview

Clamps Dictionary

V

v-append

Macro

(v-append (v n &optional (tail '())) &rest body)

Return a list of n elems appended to each other and prepended to tail by evaluating body n times with the symbol v bound to the iteration index in the lexical scope of body. The body has to return a list.

Arguments

v Symbol used as variable name.
n Integer indicating the number of iterations.
body Macro body being evaluated n times. Needs to return a list.

Examples

(v-append (n 5) (list :num (* n n))) ;-> (:num 0 :num 1 :num 4 :num 9 :num 16)

Author: Orm Finnendahl

Created: 2025-02-18 Di 12:58

Validate