guile-user
[Top][All Lists]
Advanced

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

Re: list building


From: Lynn Winebarger
Subject: Re: list building
Date: Wed, 14 Jan 2004 13:48:28 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830


   Better to take TTN's advice if there's any portability desired.
Order of evaluation is not specified by the scheme standard.

Lynn

Stephen Compall wrote:
Matt Hellige <address@hidden> writes:


If you already have an output-list you need to preserve, then:

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


Better,

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

Particularly as the original pushed `sgids' first, IIRC. cons* is your
friend.






reply via email to

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