Skip to content

Commit 4152142

Browse files
authored
Merge pull request #3309 from He-Pin/withFilter
Add resul type to Stream#`withFilter`
2 parents 30beea0 + 6fa843f commit 4152142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/shared/src/main/scala/fs2/Stream.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2853,7 +2853,7 @@ final class Stream[+F[_], +O] private[fs2] (private[fs2] val underlying: Pull[F,
28532853
/** Alias for [[filter]]
28542854
* Implemented to enable filtering in for comprehensions
28552855
*/
2856-
def withFilter(f: O => Boolean) = this.filter(f)
2856+
def withFilter(f: O => Boolean): Stream[F, O] = this.filter(f)
28572857

28582858
private type ZipWithLeft[G[_], I, O2] = (Chunk[I], Stream[G, I]) => Pull[G, O2, Unit]
28592859

0 commit comments

Comments
 (0)