We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a3acfc commit 539227eCopy full SHA for 539227e
core/src/main/scala/fs2/async/immutable/Signal.scala
@@ -53,6 +53,8 @@ trait Signal[F[_], A] { self =>
53
def changes: Stream[F, Unit] = self.changes
54
def get: F[B] = F.map(self.get)(f)
55
}
56
+
57
+ def imap[B](f: A => B)(g: B => A)(implicit F: Functor[F]): Signal[F, B] = map(f)
58
59
60
0 commit comments