• Re: read into lists

    From B. Pym@Nobody447095@here-nor-there.org to comp.lang.lisp on Mon Jun 30 17:48:04 2025
    From Newsgroup: comp.lang.lisp

    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)
    --- Synchronet 3.21d-Linux NewsLink 1.2