You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is technically breaking since it introduced the possibility for name conflicts, so we may as well consider them when we'll have a major version bump.
Some methods to consider (edit this comment to add more, we don't need to add them all):
Iterable.firstWhereOrNull since it is no longer feasible to use Iterable.firstWhere(predicate, orElse: () => null);
I would really prefer to introduce a sublist functionality where you get a new fixed-length list backed by a slice of another list, then sortRange(range) and shuffleRange(range) would just be sublist(range).sort() and sublist(range).shuffle().
It's annoying to require every operation on lists to have to/from parameters.
(Ditto for strings, I'd love a lazy substring).
The rest are perfectly reasonable extension method suggestions.
Uh oh!
There was an error while loading. Please reload this page.
This is technically breaking since it introduced the possibility for name conflicts, so we may as well consider them when we'll have a major version bump.
Some methods to consider (edit this comment to add more, we don't need to add them all):
Iterable.firstWhereOrNull
since it is no longer feasible to useIterable.firstWhere(predicate, orElse: () => null);
List.sortRange
,List.shuffleRange
- API Change Request: add List.sortRange and List.shuffleRange sdk#40841Iterable.enumerate
- Addition to stdlib proposal: Iterable.enumerate sdk#32467Iterable<T?>.whereNotNull()
returnsIterable<T>
.All existing top level methods should probably be moved to be extensions.
The text was updated successfully, but these errors were encountered: