Sujet : Re: All paths through a tree
De : No_spamming (at) *nospam* noWhere_7073.org (B. Pym)
Groupes : comp.lang.lispDate : 20. Jun 2024, 03:35:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v504hg$2cnil$1@dont-email.me>
User-Agent : XanaNews/1.18.1.6
Pascal Bourguignon wrote:
When you have a vector, that is a repeatition of items of some kind,
the procedure processing it will be a repeating loop:
(defun process-vector (v)
(loop :for i :from 0 :below (length v)
:do (process-item (aref v i))))
Gauche Scheme
(vector-for-each print '#(a b c))
===>
a
b
c