Clamps Dictionary
do-repeated
Function
(do-repeated n fn &rest args)
Recursively apply fn to args n times.
Arguments
n |
Integer number of repetitions. |
fn |
Function to apply. |
Examples
(do-repeated 4 (lambda (x) (* x 2)) 1) ; => 16 (do-repeated 4 (lambda (x) (* x x)) 2) ; => 65536 (do-repeated 6 (lambda (list) (cons 1 list)) '()) ; => (1 1 1 1 1 1)
See also
Created: 2025-02-18 Di 12:58