Sujet : Re: Multivalue tail recursion?
De : alan (at) *nospam* csail.mit.edu (Alan Bawden)
Groupes : comp.lang.lispDate : 20. Jun 2025, 00:22:49
Autres entêtes
Organisation : ITS Preservation Society
Message-ID : <86o6uj48qe.fsf@williamsburg.bawden.org>
References : 1 2
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
Kaz Kylheku <
643-408-1753@kylheku.com> writes:
> Scheme:
>
> (filter-map
> (lambda xs (and (apply = xs) xs))
What's wrong with (if (apply = xs) xs)?
In Scheme, (if #F whatever) is undefined, while (and #F whatever) is #F.
At least that's the way it was in R5RS. I don't have a more recent
version of the specification handy.
(Meanwhile in Common Lisp, (if nil whatever) is nil.)
(Kaz: Why are you wasting your time replying to this junk?)