[Top][All Lists]

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

Re: procedure to check equality of list-elements

From: David Kastrup
Subject: Re: procedure to check equality of list-elements
Date: Sun, 06 Nov 2022 15:01:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Thomas Morley <> writes:

> Call me surprised.
> The guile manual only gives code-examples comparing _two_ values with
> eq? and friends.
> I didn't know and didn't imagine it would work for more arguments as
> you wrote above.

The Guile manual may be somewhat fixated on the C interface which only
takes two values.  There are several Scheme operators that have some
automated behavior for a variable number of operands.

Other candidates that may be surprising are

< <= > >=

The C API is strictly two-operands, but from Scheme you can throw a
variable number at them.

David Kastrup

reply via email to

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