mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 19:55:31 -05:00
parent
b26021a976
commit
97e49b6a5c
1 changed files with 10 additions and 0 deletions
|
|
@ -38,6 +38,16 @@ val map : ('a -> 'b) -> 'b t -> 'a t
|
||||||
[map fst int] compares values of type [(int * 'a)] by their
|
[map fst int] compares values of type [(int * 'a)] by their
|
||||||
first component. *)
|
first component. *)
|
||||||
|
|
||||||
|
val always_eq : _ t
|
||||||
|
(** Always returns true. All values are equal.
|
||||||
|
@since NEXT_RELEASE *)
|
||||||
|
|
||||||
|
val never_eq : _ t
|
||||||
|
(** Always returns false. No values are, so this
|
||||||
|
is not even reflexive (i.e. [x=x] is false).
|
||||||
|
Be careful!
|
||||||
|
@since NEXT_RELEASE *)
|
||||||
|
|
||||||
module Infix : sig
|
module Infix : sig
|
||||||
val (>|=) : 'b t -> ('a -> 'b) -> 'a t
|
val (>|=) : 'b t -> ('a -> 'b) -> 'a t
|
||||||
(** Infix equivalent of {!map}. *)
|
(** Infix equivalent of {!map}. *)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue