-
-
Notifications
You must be signed in to change notification settings - Fork 3
feat!: Introduce new ReadOnlyOrderedSet super-interface #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
c210922
f7eb6cd
7fa19d8
0a287fe
b970236
7ef8423
43d1801
974448b
8963777
8134f00
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ import 'types.dart'; | |
|
|
||
| void main() { | ||
| OrderedSet<K> comparing<K>(Mapper<K> mapper) { | ||
| return OrderedSet.comparing<K>(Comparing.on(mapper)); | ||
| return OrderedSet.comparing<K>(compare: Comparing.on(mapper)); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dart doesn't allow named and optional parameters on the same function sadly: honestly I am considering just making the compare function mandatory, and then removing the "default compare" nastyness
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's quite nice to be able to just plug in |
||
| } | ||
|
|
||
| OrderedSet<K> priority<K>(Mapper<K> mapper) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.