FlatMap

leopards.FlatMap
trait FlatMap[F[_]] extends Apply[F]

Attributes

Source
FlatMap.scala
Graph
Supertypes
trait Apply[F]
trait Semigroupal[F]
trait Functor[F]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Monad[F]
object stdListInstances.type
object stdOptionInstances.type

Members list

Value members

Concrete methods

def ap[A, B](ff: F[A => B], fa: F[A]): F[B]

Attributes

Source
FlatMap.scala

Inherited methods

def lift[A, B](f: A => B): F[A] => F[B]

Attributes

Inherited from:
Functor
Source
Functor.scala

Extensions

Extensions

extension [A](fa: F[A])
def flatMap[B](f: A => F[B]): F[B]

Attributes

Source
FlatMap.scala
extension [A](ffa: F[F[A]])
def flatten: F[A]

Attributes

Source
FlatMap.scala

Inherited extensions

extension [A](fa: F[A])
def as[B](b: B): F[B]

Attributes

Inherited from:
Functor
Source
Functor.scala
def map[B](f: A => B): F[B]

Attributes

Inherited from:
Functor
Source
Functor.scala
def void: F[Unit]

Attributes

Inherited from:
Functor
Source
Functor.scala
extension [A](fa: F[A])
def *>[B](fb: F[B]): F[B]

Attributes

Inherited from:
Apply
Source
Apply.scala
def <*[B](fb: F[B]): F[A]

Attributes

Inherited from:
Apply
Source
Apply.scala
def map2[B, Z](fb: F[B])(f: (A, B) => Z): F[Z]

Attributes

Inherited from:
Apply
Source
Apply.scala
override def product[B](fb: F[B]): F[(A, B)]

Attributes

Definition Classes
Inherited from:
Apply
Source
Apply.scala
extension [A, B](ff: F[A => B])
inline def <*>(fa: F[A]): F[B]

Attributes

Inherited from:
Apply
Source
Apply.scala
extension [T <: NonEmptyTuple](tuple: T)(using toMap: IsMappedBy[F][T])
inline def mapN[B](f: InverseMap[T, F] => B): F[B]

Attributes

Inherited from:
Apply
Source
Apply.scala
inline def tupled: F[InverseMap[T, F]]

Attributes

Inherited from:
Apply
Source
Apply.scala