package batteries

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

Module type BatInterfaces.MonadSource

Signature for monads

Sourcetype 'a m

The type of a monad producing values of type 'a.

Sourceval bind : 'a m -> ('a -> 'b m) -> 'b m

Monadic binding.

bind m f executes first m then f, using the result of m.

Sourceval return : 'a -> 'a m

Return a value, that is, put a value in the monad.

OCaml

Innovation. Community. Security.