package containers

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

Module CCOpt.InfixSource

Sourceval (>|=) : 'a t -> ('a -> 'b) -> 'b t

x >|= f is map f x.

Sourceval (>>=) : 'a t -> ('a -> 'b t) -> 'b t

Monadic bind.

Sourceval (<*>) : ('a -> 'b) t -> 'a t -> 'b t

f <*> (Some x) returns Some (f x) and f <*> None returns None.

Sourceval (<$>) : ('a -> 'b) -> 'a t -> 'b t

Like map.

Sourceval (<+>) : 'a t -> 'a t -> 'a t

a <+> b is a if a is Some _, b otherwise.

Let operators on OCaml >= 4.08.0, nothing otherwise

  • since 2.8
include CCShimsMkLet_.S with type 'a t_let := 'a option
Sourceval (let+) : 'a option -> ('a -> 'b) -> 'b option
Sourceval (and+) : 'a option -> 'b option -> ('a * 'b) option
Sourceval (let*) : 'a option -> ('a -> 'b option) -> 'b option
Sourceval (and*) : 'a option -> 'b option -> ('a * 'b) option
OCaml

Innovation. Community. Security.