mirror of
https://github.com/c-cube/iter.git
synced 2025-12-06 11:15:32 -05:00
deprecate flatMap and fmap
This commit is contained in:
parent
9d157fe392
commit
ae1932fba4
1 changed files with 5 additions and 5 deletions
10
sequence.mli
10
sequence.mli
|
|
@ -168,18 +168,18 @@ val flatten : 'a t t -> 'a t
|
||||||
(** Alias for {!concat} *)
|
(** Alias for {!concat} *)
|
||||||
|
|
||||||
val flatMap : ('a -> 'b t) -> 'a t -> 'b t
|
val flatMap : ('a -> 'b t) -> 'a t -> 'b t
|
||||||
(** Monadic bind. Intuitively, it applies the function to every element of the
|
(** @deprecated use {!flat_map} since NEXT_RELEASE *)
|
||||||
initial sequence, and calls {!concat}. *)
|
|
||||||
|
|
||||||
val flat_map : ('a -> 'b t) -> 'a t -> 'b t
|
val flat_map : ('a -> 'b t) -> 'a t -> 'b t
|
||||||
(** Alias to {!flatMap} with a more explicit name
|
(** Monadic bind. Intuitively, it applies the function to every element of the
|
||||||
|
initial sequence, and calls {!concat}.
|
||||||
@since 0.5 *)
|
@since 0.5 *)
|
||||||
|
|
||||||
val fmap : ('a -> 'b option) -> 'a t -> 'b t
|
val fmap : ('a -> 'b option) -> 'a t -> 'b t
|
||||||
(** Specialized version of {!flatMap} for options. *)
|
(** @deprecated use {!filter_map} since NEXT_RELEASE *)
|
||||||
|
|
||||||
val filter_map : ('a -> 'b option) -> 'a t -> 'b t
|
val filter_map : ('a -> 'b option) -> 'a t -> 'b t
|
||||||
(** Alias to {!fmap} with a more explicit name
|
(** Map and only keep non-[None] elements
|
||||||
@since 0.5 *)
|
@since 0.5 *)
|
||||||
|
|
||||||
val intersperse : 'a -> 'a t -> 'a t
|
val intersperse : 'a -> 'a t -> 'a t
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue