On Sun, 2005-09-11 at 22:19 +0200, Christian Mauduit wrote:
> FYI I use the following code instead, to display args:
> 
> (apply format (cons #f (cons (cadr args) (caddr args))))
> 
> Unelegant in the source, but displays things in a nicer way IMHO.

This is common enough -- requiring some arguments, then providing a rest
argument -- that apply handles it for you:

(apply format #f (cadr args) (caddr args))

Only the last argument must be a list; arguments from the second onward,
but the last one, are effectively consed on to the front of the last
argument (a list), as you do manually.

-- 
Stephen Compall
http://scompall.nocandysoftware.com/blog

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to