All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tofu.syntax.selective.scala Maven / Gradle / Ivy

package tofu.syntax

import tofu.control.Selective
import tofu.control.Selective

object selective extends Selective.ToSelectiveOps {
  implicit class OptionSelectOps[F[_], A](val fo: F[Option[A]]) extends AnyVal {
    def select(fa: F[A])(implicit F: Selective[F]): F[A]                   = F.select(fo, fa)
    def orElses(fo2: F[Option[A]])(implicit F: Selective[F]): F[Option[A]] = F.orElses(fo)(fo2)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy