Re: All paths through a tree

Liste des GroupesRevenir à cl lisp 
Sujet : Re: All paths through a tree
De : No_spamming (at) *nospam* noWhere_7073.org (B. Pym)
Groupes : comp.lang.lisp
Date : 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

Date Sujet#  Auteur
20 Jun 24 o Re: All paths through a tree1B. Pym

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal