package monads

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

The pair interface lifted into the monad.

val fst : ('a * 'b, 'e) T2(M).t -> ('a, 'e) T2(M).t

fst (x,y) computes x

val snd : ('a * 'b, 'e) T2(M).t -> ('b, 'e) T2(M).t

snd (x,y) computes y

OCaml

Innovation. Community. Security.