This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: What's wrong with this code?


> (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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]