guile-user
[Top][All Lists]
Advanced

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

Re: progv in scheme


From: Ludovic Courtès
Subject: Re: progv in scheme
Date: Tue, 13 Sep 2011 19:20:04 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Hi,

Panicz Maciej Godek <address@hidden> skribis:

> for now, the problem is that I want to bind the variables that are
> contained within a list, and that I don't know what's in that list.

I would recommend using (ice-9 match):

  (match '(1 2 3)
    ((a b c) `((a . ,a) (b . ,b) (c . ,c))))

  => ((a . 1) (b . 2) (c . 3))

HTH,
Ludo’.




reply via email to

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