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