Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: W-Y , Previous: V , Up: V , Home: Overview

Clamps Dictionary

v-collect

Macro

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

Return a list of n elems prepended to tail by evaluating body n times with the symbol v bound to the iteration index in the lexical scope of body.

Arguments

v Symbol used as variable name.
n Integer indicating the number of iterations.
body Function body being evaluated n times.

Examples

(v-collect (n 10) (* n n)) ;-> (0 1 4 9 16 25 36 49 64 81)

Author: Orm Finnendahl

Created: 2025-02-18 Di 12:58

Validate