Sink

libretto.lambda.Sink
See theSink companion object
sealed trait Sink[-->[_, _], <+>[_, _], A, B]

A collection of arrows of the form Ai --> B, with A = A1 <+> ... <+> An.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Arrow[-->, <+>, A, B]
class Join[-->, <+>, A1, A2, B]

Members list

Concise view

Value members

Concrete methods

def <+>[X](that: Sink[-->, <+>, X, B]): Sink[-->, <+>, A <+> X, B]
def map[->>[_, _]](g: [x] => (x$1: x --> B) => ->>[x, B]): Sink[->>, <+>, A, B]
def reduce(g: [x, y] => (x$1: x --> B, x$2: y --> B) => x <+> y --> B): A --> B
def reduceM[M[_] : Monad](g: [x, y] => (x$1: x --> B, x$2: y --> B) => M[x <+> y --> B]): M[A --> B]
def traverse[G[_] : Applicative, ->>[_, _]](g: [x] => (x$1: x --> B) => G[->>[x, B]]): G[Sink[->>, <+>, A, B]]