Next: Angles, Previous: Stores, Up: API Reference [Contents][Index]
Grip module that provides a few more iteration mechanisms, which you may load using:
(use-modules (grip iter))
dolist
dotimes
Returns result if it is passed, otherwise nothing.
Successfully binds variable to each element of list and executes body …
(dolist (item '(a b d c) 4) (display item)) -| abcd 4
Returns result if it is passed, otherwise nothing.
Executes body … count times, with variable
successfully binded to each integer in the range [0 (- count 1)]
.
(dotimes (i 4) (display i)) -| 0123