This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: What's wrong with this code?
- From: Chris Dean <ctdean at sokitomi dot com>
- To: "N H" <nethuman at hotmail dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Mon, 14 Mar 2005 16:34:06 -0800
- Subject: Re: What's wrong with this code?
- References: <BAY22-F19813CA276D1260FFBB771CF560@phx.gbl>
> (filter (lambda (x) (not (member x '(1 2 3)))) '(1 b c))
>
> Invalid parameter, was: null
> java.lang.ClassCastException
> at atInteractiveLevel.lambda1(Unknown Source)
> at atInteractiveLevel.apply1(Unknown Source)
> at gnu.expr.ModuleMethod.apply1(ModuleMethod.java:85)
> at
> gnu.kawa.slib.srfi1$frame28.lambda64recur(/home/bothner/Kawa/kawa/gnu/kawa/slib/srfi1.scm:1002)
This is an old bug in filter, which was fixed a while back. In my CVS
version I get:
#|kawa:10|# (filter (lambda (x) (not (member x '(1 2 3)))) '(1 b c))
(b c)
Regards,
Chris Dean