mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 11:45:31 -05:00
fix: wrong name in 6b52ec69
partition_filter_either -> partition_map_either
This commit is contained in:
parent
6b52ec6945
commit
1975c98025
2 changed files with 4 additions and 4 deletions
|
|
@ -231,9 +231,9 @@ val diagonal : 'a t -> ('a * 'a) t
|
|||
(** [diagonal l] returns all pairs of distinct positions of the list [l],
|
||||
that is the list of [List.nth i l, List.nth j l] if [i < j]. *)
|
||||
|
||||
val partition_filter_either : ('a -> ('b, 'c) CCEither.t) ->
|
||||
val partition_map_either : ('a -> ('b, 'c) CCEither.t) ->
|
||||
'a list -> 'b list * 'c list
|
||||
(** [partition_filter_either f l] maps [f] on [l] and gather results in lists:
|
||||
(** [partition_map_either f l] maps [f] on [l] and gather results in lists:
|
||||
- if [f x = Left y], adds [y] to the first list.
|
||||
- if [f x = Right z], adds [z] to the second list.
|
||||
@since NEXT_RELEASE *)
|
||||
|
|
|
|||
|
|
@ -235,9 +235,9 @@ val diagonal : 'a t -> ('a * 'a) t
|
|||
(** [diagonal l] returns all pairs of distinct positions of the list [l],
|
||||
that is the list of [List.nth i l, List.nth j l] if [i < j]. *)
|
||||
|
||||
val partition_filter_either : f:('a -> ('b, 'c) CCEither.t) ->
|
||||
val partition_map_either : f:('a -> ('b, 'c) CCEither.t) ->
|
||||
'a list -> 'b list * 'c list
|
||||
(** [partition_filter_either ~f l] maps [f] on [l] and gather results in lists:
|
||||
(** [partition_map_either ~f l] maps [f] on [l] and gather results in lists:
|
||||
- if [f x = Left y], adds [y] to the first list.
|
||||
- if [f x = Right z], adds [z] to the second list.
|
||||
@since NEXT_RELEASE *)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue