[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: procedure to check equality of list-elements
From: |
Jean Abou Samra |
Subject: |
Re: procedure to check equality of list-elements |
Date: |
Sun, 6 Nov 2022 13:53:15 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 |
Le 06/11/2022 à 13:27, Thomas Morley a écrit :
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.
Well, call me surprised too. R5RS section 6.1 defines eqv? on
two arguments only.
https://www.schemers.org/Documents/Standards/R5RS/r5rs.pdf
So does R6RS section 11.5.
http://www.r6rs.org/final/r6rs.pdf
Thus (eqv? a b c d) is a Guile extension.
On the other hand, these standards do define all of
= < > <= >= max min + * - /
on any number of arguments. No clue why it isn't the
case for eq?, eqv? and equal? then...
OpenPGP_signature
Description: OpenPGP digital signature
- procedure to check equality of list-elements, Thomas Morley, 2022/11/06
- Re: procedure to check equality of list-elements, Jean Abou Samra, 2022/11/06
- Re: procedure to check equality of list-elements, Thomas Morley, 2022/11/06
- Re: procedure to check equality of list-elements,
Jean Abou Samra <=
- Re: procedure to check equality of list-elements, David Kastrup, 2022/11/06
- Re: procedure to check equality of list-elements, Luca Fascione, 2022/11/06
- Re: procedure to check equality of list-elements, Jean Abou Samra, 2022/11/06
- Re: procedure to check equality of list-elements, Luca Fascione, 2022/11/06