package base

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

Module Monad.Make_indexedSource

The same as S except the monad type has three arguments. The second and third are composed across all computation.

Parameters

module X : Basic_indexed

Signature

Sourceval (>>=) : ('a, 'i, 'j) X.t -> ('a -> ('b, 'j, 'k) X.t) -> ('b, 'i, 'k) X.t
Sourceval (>>|) : ('a, 'i, 'j) X.t -> ('a -> 'b) -> ('b, 'i, 'j) X.t
Sourcemodule Let_syntax : sig ... end
Sourcemodule Monad_infix : sig ... end

Same as Infix, except the monad type has three arguments. The second and third are composed across all computation.

Sourceval bind : ('a, 'i, 'j) X.t -> f:('a -> ('b, 'j, 'k) X.t) -> ('b, 'i, 'k) X.t
Sourceval return : 'a -> ('a, 'i, 'i) X.t
Sourceval map : ('a, 'i, 'j) X.t -> f:('a -> 'b) -> ('b, 'i, 'j) X.t
Sourceval join : (('a, 'j, 'k) X.t, 'i, 'j) X.t -> ('a, 'i, 'k) X.t
Sourceval ignore_m : (_, 'i, 'j) X.t -> (unit, 'i, 'j) X.t
Sourceval all : ('a, 'i, 'i) X.t list -> ('a list, 'i, 'i) X.t
Sourceval all_unit : (unit, 'i, 'i) X.t list -> (unit, 'i, 'i) X.t
OCaml

Innovation. Community. Security.