Skip to content

Commit 539227e

Browse files
Remove Signal.imap using map
1 parent 6a3acfc commit 539227e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/scala/fs2/async/immutable/Signal.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ trait Signal[F[_], A] { self =>
5353
def changes: Stream[F, Unit] = self.changes
5454
def get: F[B] = F.map(self.get)(f)
5555
}
56+
57+
def imap[B](f: A => B)(g: B => A)(implicit F: Functor[F]): Signal[F, B] = map(f)
5658
}
5759

5860

0 commit comments

Comments
 (0)