allEqual and allDistinct #495
DmitryNekrasov
announced in
keep-discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This is a place to discuss the allEqual and allDistinct proposal. The text of the proposal is located here.
The goal of the proposal is to add two families of short-circuiting extension functions:
allEqual()/allEqualBy { }check whether all elements of a collection are equal to each other, andallDistinct()/allDistinctBy { }check whether they are all different from each other.Feedback is especially welcome on the two decisions that keep the API experimental: the floating-point equality model and the absence of a custom-predicate overload.
All reactions