Re: read into lists

Liste des GroupesRevenir à cl lisp 
Sujet : Re: read into lists
De : Nobody447095 (at) *nospam* here-nor-there.org (B. Pym)
Groupes : comp.lang.lisp
Date : 30. Jun 2025, 18:48:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <103uikj$2a6eb$1@dont-email.me>
User-Agent : XanaNews/1.18.1.6
Hi
>
how can I read input from the keyboard into a list
 
Assuming that the keyboard is attached to *standard-input*
 
  (loop with eof = (gensym)
        for thing = (read *standard-input* nil eof)
        until (eq thing eof)
        collect thing)
 
Mmmmmm, tastes like ALGOL...

Gauche Scheme:

(use gauche.generator)

(generator->list read)

Date Sujet#  Auteur
30 Jun 25 o Re: read into lists1B. Pym

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal