Am So., 6. Nov. 2022 um 13:39 Uhr schrieb Jean Abou Samra <j...@abou-samra.fr>: > > > > Le 06/11/2022 à 13:27, Thomas Morley a écrit : > > Ofcourse not, though you need to know that the chosen proc is suitable > > for the task. > > For me eqv? was always meant to work with exactly two values, like cons. > > But (apply cons '(1 2 3)) fails ofcourse. > > > > In the past I searched the guile-manual and our own lilbrary to get a > > procedure testing equality of list-elements. To no avail. So I ended > > up defining some custom-recursion... > > Having a named (and documented) procedure would probably have helped. > > > To me that sounds more like you should submit a doc patch to Guile > so that the Guile doc doesn't say eqv? et al. apply to two elements > only. > > Currently the only hint one can get is: doing in a guile-prompt:
scheme@(guile-user)> + $1 = #<procedure + (#:optional _ _ . _)> scheme@(guile-user)> eq? $2 = #<procedure eq? (#:optional _ _ . _)> scheme@(guile-user)> Now one could imagine eq? could be used on more than two values, like +. Though, I'd say one need to know it already, before one gets the idea to enter it in a prompt... Thanks, Harm