Hi Valentin, Just a small correction:
Le 04/11/2022 à 09:02, Valentin Petzel a écrit :
For checking equality we have three basic functions: eq?, eqv? and equal?. eq? checks if we reference the same object, but fails for numbers and strings. eqv? does the same, but with numbers and strings it compares the values.
You mean characters (not strings). Also note that eq? is not even guaranteed to fail on numbers and characters -- it's unspecified. For example, with Guile 2.2: scheme@(guile-user)> (eq? (expt 2 10) (expt 2 10)) $1 = #t scheme@(guile-user)> (eq? (expt 2 100) (expt 2 100)) $2 = #f Cheers, Jean
OpenPGP_signature
Description: OpenPGP digital signature
