• Re: read into lists

    From B. Pym@21:1/5 to All on Mon Jun 30 17:48:04 2025
    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)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)