mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2026-01-29 04:14:51 -05:00
|> combinator for Enum
This commit is contained in:
parent
135989d55f
commit
f3206ca019
2 changed files with 3 additions and 0 deletions
2
enum.ml
2
enum.ml
|
|
@ -193,4 +193,6 @@ module Infix = struct
|
||||||
let (>>=) e f = flatMap f e
|
let (>>=) e f = flatMap f e
|
||||||
|
|
||||||
let (--) = int_range
|
let (--) = int_range
|
||||||
|
|
||||||
|
let (|>) x f = f x
|
||||||
end
|
end
|
||||||
|
|
|
||||||
1
enum.mli
1
enum.mli
|
|
@ -97,4 +97,5 @@ module Infix : sig
|
||||||
val (@@) : 'a t -> 'a t -> 'a t
|
val (@@) : 'a t -> 'a t -> 'a t
|
||||||
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
|
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
|
||||||
val (--) : int -> int -> int t
|
val (--) : int -> int -> int t
|
||||||
|
val (|>) : 'a -> ('a -> 'b) -> 'b
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue