tofu.syntax.streams.combineK.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tofu-streams_2.13 Show documentation
Show all versions of tofu-streams_2.13 Show documentation
Opinionated set of tools for functional programming in Scala
The newest version!
package tofu.syntax.streams
import cats.syntax.semigroupk._
import cats.{Defer, SemigroupK}
private[syntax] final class CombineKOps[F[_], A](private val fa: F[A]) extends AnyVal {
def repeat(implicit F: SemigroupK[F], D: Defer[F]): F[A] = fa <+> D.defer(repeat)
}
private[syntax] trait CombineKSyntax {
implicit def toCombineKOps[F[_], A](fa: F[A]): CombineKOps[F, A] = new CombineKOps(fa)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy