Skip to content

Commit

Permalink
feat: expand
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Mar 7, 2024
1 parent e5b6956 commit b10019a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/array/array.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ extension type Arr<T>._(List<T> list) implements Iterable<T> {

// bool every(bool Function(T) f) => list.every(f);

RIterator<T> expand(Iterable<T> Function(T) f) => RIterator(list.expand(f));
RIterator<U> expand<U>(Iterable<U> Function(T) f) => RIterator(list.expand(f));

// T firstWhere(bool Function(T) f, {T Function()? orElse}) => list.firstWhere(f, orElse: orElse);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/iter/iterator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ extension type RIterator<T>(Iterable<T> iterable) implements Iterable<T> {

// bool every(bool Function(T) f) => iterable.every(f);

RIterator<T> expand(Iterable<T> Function(T) f) => RIterator(iterable.expand(f));
RIterator<U> expand<U>(Iterable<U> Function(T) f) => RIterator(iterable.expand(f));

// T firstWhere(bool Function(T) f, {T Function()? orElse}) => iterable.firstWhere(f, orElse: orElse);

Expand Down

0 comments on commit b10019a

Please sign in to comment.