diff --git a/dev/containers/CCEither/index.html b/dev/containers/CCEither/index.html index ebe88ae5..388feba8 100644 --- a/dev/containers/CCEither/index.html +++ b/dev/containers/CCEither/index.html @@ -1,4 +1,4 @@ -CCEither (containers.CCEither)

Module CCEither

Either Monad

Module that is compatible with Either form OCaml 4.12 but can be use with any ocaml version compatible with container

type 'a iter = ('a -> unit) -> unit
type 'a equal = 'a -> 'a -> bool
type 'a ord = 'a -> 'a -> int
type 'a printer = Stdlib.Format.formatter -> 'a -> unit

Basics

include module type of CCShimsEither_
type ('a, 'b) t = ('a'b) Stdlib.Either.t =
| Left of 'a
| Right of 'b
val left : 'a -> ('a'b) t

left l is Left l

val right : 'b -> ('a'b) t

right r is Right r

val is_left : ('a'b) t -> bool

is_left x checks if x = Left _

val is_right : ('a'b) t -> bool

is_right x checks if x = Right _

val find_left : ('a'b) t -> 'a option

find_left x returns l if x = Left l and None otherwise.

val find_right : ('a'b) t -> 'b option

find_right x returns r if x = Left r and None otherwise.

val map_left : ('a1 -> 'a2) -> ('a1'b) t -> ('a2'b) t

Map of the Left variant.

val map_right : ('b1 -> 'b2) -> ('a'b1) t -> ('a'b2) t

Map of the Right variant.

val map : left:('a1 -> 'a2) -> right:('b1 -> 'b2) -> ('a1'b1) t -> ('a2'b2) t

Map using left or right.

val fold : left:('a -> 'c) -> right:('b -> 'c) -> ('a'b) t -> 'c

Fold using left or right.

val iter : left:('a -> unit) -> right:('b -> unit) -> ('a'b) t -> unit

Iter using left or right.

val for_all : left:('a -> bool) -> right:('b -> bool) -> ('a'b) t -> bool

Check some property on Left or Right variant.

val equal : left:('a -> 'a -> bool) -> right:('b -> 'b -> bool) -> +CCEither (containers.CCEither)

Module CCEither

Either Monad

Module that is compatible with Either form OCaml 4.12 but can be use with any ocaml version compatible with container

  • since 3.2
type 'a iter = ('a -> unit) -> unit
type 'a equal = 'a -> 'a -> bool
type 'a ord = 'a -> 'a -> int
type 'a printer = Stdlib.Format.formatter -> 'a -> unit

Basics

type ('a, 'b) t = ('a'b) Either.t =
| Left of 'a
| Right of 'b
val left : 'a -> ('a'b) t

left l is Left l

val right : 'b -> ('a'b) t

right r is Right r

val is_left : ('a'b) t -> bool

is_left x checks if x = Left _

val is_right : ('a'b) t -> bool

is_right x checks if x = Right _

val find_left : ('a'b) t -> 'a option

find_left x returns l if x = Left l and None otherwise.

val find_right : ('a'b) t -> 'b option

find_right x returns r if x = Left r and None otherwise.

val map_left : ('a1 -> 'a2) -> ('a1'b) t -> ('a2'b) t

Map of the Left variant.

val map_right : ('b1 -> 'b2) -> ('a'b1) t -> ('a'b2) t

Map of the Right variant.

val map : left:('a1 -> 'a2) -> right:('b1 -> 'b2) -> ('a1'b1) t -> ('a2'b2) t

Map using left or right.

val fold : left:('a -> 'c) -> right:('b -> 'c) -> ('a'b) t -> 'c

Fold using left or right.

val iter : left:('a -> unit) -> right:('b -> unit) -> ('a'b) t -> unit

Iter using left or right.

val for_all : left:('a -> bool) -> right:('b -> bool) -> ('a'b) t -> bool

Check some property on Left or Right variant.

val equal : left:('a -> 'a -> bool) -> right:('b -> 'b -> bool) -> ('a'b) t -> ('a'b) t -> bool
val compare : left:('a -> 'a -> int) -> right:('b -> 'b -> int) -> ('a'b) t -> ('a'b) t -> int

IO

val pp : left:'a printer -> right:'b printer -> ('a'b) t printer

Pretty printer.

\ No newline at end of file diff --git a/dev/containers/CCShimsEither_/.dune-keep b/dev/containers/CCShimsEither_/.dune-keep deleted file mode 100644 index e69de29b..00000000 diff --git a/dev/containers/CCShimsEither_/index.html b/dev/containers/CCShimsEither_/index.html deleted file mode 100644 index 0dfff96f..00000000 --- a/dev/containers/CCShimsEither_/index.html +++ /dev/null @@ -1,2 +0,0 @@ - -CCShimsEither_ (containers.CCShimsEither_)

Module CCShimsEither_

type ('a, 'b) t = ('a'b) Stdlib.Either.t =
| Left of 'a
| Right of 'b
\ No newline at end of file diff --git a/dev/containers/index.html b/dev/containers/index.html index de9cd4d8..764ab0bc 100644 --- a/dev/containers/index.html +++ b/dev/containers/index.html @@ -1,2 +1,2 @@ -index (containers.index)

containers index

Library containers

This library exposes the following toplevel modules:

Library containers.codegen

The entry point of this library is the module: Containers_codegen.

Library containers.monomorphic

This library exposes the following toplevel modules:

Library containers.top

The entry point of this library is the module: Containers_top.

Library containers.unix

The entry point of this library is the module: CCUnix.

\ No newline at end of file +index (containers.index)

containers index

Library containers

This library exposes the following toplevel modules:

Library containers.codegen

The entry point of this library is the module: Containers_codegen.

Library containers.monomorphic

This library exposes the following toplevel modules:

Library containers.top

The entry point of this library is the module: Containers_top.

Library containers.unix

The entry point of this library is the module: CCUnix.

\ No newline at end of file diff --git a/dev/index.html b/dev/index.html index 301844c1..aa9b9ed7 100644 --- a/dev/index.html +++ b/dev/index.html @@ -11,9 +11,9 @@

OCaml package documentation

    -
  1. containers 3.6
  2. -
  3. containers-data 3.6
  4. -
  5. containers-thread 3.6
  6. +
  7. containers 3.6.1
  8. +
  9. containers-data 3.6.1
  10. +
  11. containers-thread 3.6.1