object Applicative extends Serializable
- Alphabetic
- By Inheritance
- Applicative
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait AllOps[F[_], A] extends Ops[F, A] with Apply.AllOps[F, A] with InvariantMonoidal.AllOps[F, A]
- trait Ops[F[_], A] extends Serializable
- trait ToApplicativeOps extends Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[F[_]](implicit instance: Applicative[F]): Applicative[F]
Summon an instance of Applicative for
F
.Summon an instance of Applicative for
F
.- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def catsApplicativeForArrow[F[_, _], A](implicit F: Arrow[F]): Applicative[[β$0$]F[A, β$0$]]
Creates an applicative functor for
F
, holding domain fixed and combining over the codomain.Creates an applicative functor for
F
, holding domain fixed and combining over the codomain.Example:
scala> import cats.implicits._ scala> import cats.Applicative.catsApplicativeForArrow scala> val toLong: Int => Long = _.toLong scala> val double: Int => Int = 2*_ scala> val f: Int => (Long, Int) = catsApplicativeForArrow[Function1, Int].product(toLong, double) scala> f(3) res0: (Long, Int) = (3,6)
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def coflatMap[F[_]](implicit F: Applicative[F]): CoflatMap[F]
Creates a CoflatMap for an Applicative
F
.Creates a CoflatMap for an Applicative
F
. Cannot be implicit in 1.0 for Binary Compatibility ReasonsExample:
scala> import cats._ scala> import cats.implicits._ scala> val fa = Some(3) fa: Option[Int] = Some(3) scala> Applicative.coflatMap[Option].coflatten(fa) res0: Option[Option[Int]] = Some(Some(3))
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def monoid[F[_], A](implicit f: Applicative[F], monoid: Monoid[A]): Monoid[F[A]]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- object nonInheritedOps extends ToApplicativeOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.2.0) Use cats.syntax object imports
- object ops
- Annotations
- @deprecated
- Deprecated
(Since version 2.2.0) Use cats.syntax object imports