[Top][All Lists]

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

Creating a list

From: Cecil Westerhof
Subject: Creating a list
Date: Thu, 19 Nov 2009 08:38:06 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

At the moment I create a list with:
      (setq ret-val (cons total-amount (cons current-amount ())))
I thought about doing it with:
      (setq ret-val (cons total-amount '(current-amount)))

But then the second value is the string current-amount instead of the
value of current-amount. Is there a better way to build the list? At
this moment it is not a problem, but when I want to build a list from 30
values ...

Cecil Westerhof
Senior Software Engineer

reply via email to

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