guile-user
[Top][All Lists]
Advanced

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

Re: association list bug? -- version 1.6.4


From: Tomas Zerolo
Subject: Re: association list bug? -- version 1.6.4
Date: Tue, 15 Nov 2005 06:01:38 +0100
User-agent: Mutt/1.5.6+20040907i

On Mon, Nov 14, 2005 at 08:00:13PM -0600, Jon Wilson wrote:
> Hi y'all,
> The following doesn't seem correct.
> We have an association list defined such that:
> 
> (assoc '+ forms)
> =>
> (+ . "+")
> 
> But,
> 
> (assoc-ref '+ forms)
> =>
> #f

Heh. The arguments are backwards. You want (assoc-ref forms '+)

Yeah, that has bitten others before you.

Consider vector-ref string-ref, list-ref, which take the vector,
string, list as first argument.

Regards
-- tomas

Attachment: signature.asc
Description: Digital signature


reply via email to

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