Предоставя:
FunctionK (a.k.a. ~>), Nested, Free –import cats.syntax.option._
val maybeOne = 1.some // Some(1): Option[Int]
val maybeN = none[Int] // None: Option[Int]
val either = maybeOne.toRightNec("It's not there :(") // Right(1): Either[String, Int]
val validated = maybeOne.toValidNec("It's not there :(") // Left("..."): Either[String, Int]
val integer = maybeN.orEmpty // 0Абстрактни членове:
OptionT и EitherT“Framework to build composable typesafe functional concurrency libraries and applications.” – Cats Effect