final class Function1FlatMapOps[F[_], A, B] extends AnyRef
- Alphabetic
- By Inheritance
- Function1FlatMapOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
<=<[C](g: (C) ⇒ F[A]): (C) ⇒ F[B]
Alias for
f composeF g
.Alias for
f composeF g
.- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
>=>[C](g: (B) ⇒ F[C]): (A) ⇒ F[C]
Alias for
f andThenF g
.Alias for
f andThenF g
.- Annotations
- @inline()
-
def
andThenF[C](g: (B) ⇒ F[C]): (A) ⇒ F[C]
Alias for
a => f(a).flatMap(g)
or(Kleisli(f) andThen Kleisli(g)).run
Alias for
a => f(a).flatMap(g)
or(Kleisli(f) andThen Kleisli(g)).run
Example:
scala> import scala.util._ scala> import cats.implicits._ scala> val f: List[String] => Option[String] = _.headOption scala> val g: String => Option[Int] = str => Try(str.toInt).toOption scala> (f >=> g)(List("42")) res0: Option[Int] = Some(42) scala> (f andThenF g)(List("abc")) res1: Option[Int] = None scala> (f andThenF g)(List()) res2: Option[Int] = None
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
composeF[C](g: (C) ⇒ F[A]): (C) ⇒ F[B]
Alias for
c => g(c).flatMap(f)
or(Kleisli(f) compose Kleisli(g)).run
Alias for
c => g(c).flatMap(f)
or(Kleisli(f) compose Kleisli(g)).run
Example:
scala> import scala.util._ scala> import cats.implicits._ scala> val f: String => Option[Int] = str => Try(str.toInt).toOption scala> val g: List[String] => Option[String] = _.headOption scala> (f composeF g)(List("42")) res0: Option[Int] = Some(42) scala> (f composeF g)(List("abc")) res1: Option[Int] = None scala> (f composeF g)(List()) res2: Option[Int] = None
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )