listMonad

jaskell.Monad$.Instances$.listMonad$
object listMonad extends Monad[List]

Attributes

Graph
Supertypes
trait Monad[List]
trait Applicative[List]
trait Functor[List]
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def pure[A](x: A): List[A]

Extensions

Extensions

extension [A, B](xs: List[A])
def flatMap(f: A => List[B]): List[B]

Inherited extensions

extension [A, B](fa: F[A => B])
def <*>(fb: F[A]): F[B]

Attributes

Inherited from:
Applicative
def <|>(fb: F[A => B]): F[A => B]

Attributes

Inherited from:
Applicative
extension [A, B, C](fx: F[(A, B) => C])
def liftA2(ax: F[A], bx: F[B]): F[C]

Attributes

Inherited from:
Applicative
extension [A, B](x: F[A])
def *>(bx: F[B]): F[B]

Attributes

Inherited from:
Applicative
def <*(bx: F[B]): F[A]

Attributes

Inherited from:
Applicative
extension [A, B](x: F[A])
def >>(y: F[B]): F[B]

Attributes

Inherited from:
Monad
def >>=(f: A => F[B]): F[B]

Attributes

Inherited from:
Monad
def map(f: A => B): F[B]

The map operation can now be defined in terms of flatMap

The map operation can now be defined in terms of flatMap

Attributes

Inherited from:
Monad
extension [A, B](x: F[A])
def <:>(f: A => B): F[B]

Attributes

Inherited from:
Functor
def fmap(f: A => B): F[B]

Attributes

Inherited from:
Functor