Email list hosting service & mailing list manager

SRFI 223 bisect-left and bisect-right descriptions Sudarshan S Chawathe (19 Mar 2021 20:24 UTC)
Re: SRFI 223 bisect-left and bisect-right descriptions Daphne Preston-Kendal (20 Mar 2021 09:45 UTC)

SRFI 223 bisect-left and bisect-right descriptions Sudarshan S Chawathe 19 Mar 2021 20:24 UTC

Perhaps the following is too pedantic, but my intentions are wholly
practical. I was hoping to create a "clean room" implementation of the
SRFI using only the specification (not the code) as a guide and found
myself confused.

In the description of bisect-left, my assumption (could well be
mistaken) is that the second sentence (starting with "In other words,")
is meant to restate, not augment what is specified by the first.
However, I don't see how the second sentence follows from the first.  I
think a "leftmost" needs to be added to the first sentence (or some
other fix made).  As it stands now, wouldn't always returning hi (among
other options) satisfy the first sentence but not the second?

A similar issue exists with bisect-right as well.

It is quite possible I am very confused and missing something obvious or
simply reading too much into "in other words."

Regards, and wishing all a happy equinox,

-chaw