File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/netglade_utils/lib/src/extensions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ import 'package:collection/collection.dart';
5
5
typedef Selector <T , K > = K Function (T selectFrom);
6
6
7
7
extension IterableExtensions <T > on Iterable <T > {
8
- Set <T > distinct () {
8
+ Iterable <T > distinct () {
9
9
return toSet ();
10
10
}
11
11
12
- /// Returns an iterable containing only elements from the given collection having distinct keys returned by the given [selector] function.
12
+ /// Returns an iterable containing only elements from the given collection having distinct keys returned by the given [selector] function.
13
13
/// If multiple elements have the same key, first element is returned.
14
14
Iterable <T > distinctBy <K >(Selector <T , K > selector) {
15
15
return groupBy <T , K >(this , selector)
You can’t perform that action at this time.
0 commit comments