Skip to content

Commit

Permalink
Add result type to Stream#withFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
He-Pin committed Sep 17, 2023
1 parent 196995d commit 6fa843f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/fs2/Stream.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,7 @@ final class Stream[+F[_], +O] private[fs2] (private[fs2] val underlying: Pull[F,
/** Alias for [[filter]]
* Implemented to enable filtering in for comprehensions
*/
def withFilter(f: O => Boolean) = this.filter(f)
def withFilter(f: O => Boolean): Stream[F, O] = this.filter(f)

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

Expand Down

0 comments on commit 6fa843f

Please sign in to comment.