object Applicative extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Applicative
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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 AnyRef
- trait ToApplicativeOps extends AnyRef
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]
- Annotations
- @inline()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
implicit
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.product(toLong, double) scala> f(3) res0: (Long, Int) = (3,6)
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object nonInheritedOps extends ToApplicativeOps
- object ops