insorted
behaves differently than in
#48388
Labels
bug
Indicates an unexpected problem or unintended behavior
duplicate
Indicates similar issues or pull requests
search & find
The find* family of functions
sorting
Put things in order
insorted
is documented to return true iffx
is==
to an element of the collection. It actually returns true ifx
is neither less than nor greater than an element of the collection. We could==
check that fixes this bug with a runtime penaltyThe text was updated successfully, but these errors were encountered: