Functor

Definitions

def $>(ma: f[a], x: b): f[b]Source

$> is an operator alias for replace.

def <$(x: a, ma: f[b]): f[a]Source

<$ is the operator $> with its arguments flipped.

def <$$>(x: m[a], f: a -> b \ ef): m[b] \ efSource

<$$> is the operator <$> with its arguments flipped.

def <$>(f: a -> b \ ef, x: m[a]): m[b] \ efSource

<$> is an operator alias for map.

def ignore(s: m[a]): m[Unit]Source

Replaces the value a in s with Unit preserving the structure of s.

This function is typically used to discard the return value of computing s.

def replace(s: m[a], x: b): m[b]Source

Replaces the value a in s by the given value x preserving the structure of s.