guile-user
[Top][All Lists]
Advanced

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

Re: Bug in and-map and or-map? What am I doing wrong?


From: Neil Jerram
Subject: Re: Bug in and-map and or-map? What am I doing wrong?
Date: 07 May 2001 17:58:38 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "Marius" == Marius Vollmer <address@hidden> writes:

    Marius> Neil Jerram <address@hidden> writes:
    >> (define (and-map-multilist f . lsts) (if (apply eq? (map length
    >> lsts))

    Marius> You want to use `=' here instead of `eq?'.  `eq?' fails on
    Marius> bignums.  Ok, list length wont be bignums...

`eq?' has the nice property that it works with 0 and 1 arguments.

But so does `=', so you are right.

Should I replace the existing `and-map' and `or-map' (in boot-9.scm)
with this generalization?

        Neil




reply via email to

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