guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list building


From: Marius Vollmer
Subject: Re: list building
Date: Wed, 14 Jan 2004 04:43:49 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Thien-Thi Nguyen <address@hidden> writes:

>    From: Brian S McQueen <address@hidden>
>    Date: Tue, 13 Jan 2004 16:11:23 -0800 (PST)
>
>    How should I go about building a list a
>    string at a time?
>
> generalize the problem: build a tree and then walk it (once) on
> "output".  see html-data.scm and flatten.scm in this directory:

Maybe he just wants to know about 'list' :-)

    (set! output-list (list (getd pref-login) (gids) (sgids pref-login)))

Or 'cons*':

    (set! output-list (cons* (getd pref-login) (gids) (sgids pref-login)
                             output-list))

Try

    guile> (help cons*)

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]