mirror of
https://github.com/c-cube/iter.git
synced 2025-12-05 19:00:31 -05:00
doc: make it clearer the order of elements in group_by is unspecified
This commit is contained in:
parent
67affd2502
commit
28bff9b530
1 changed files with 2 additions and 1 deletions
|
|
@ -296,13 +296,14 @@ val sorted : ?cmp:('a -> 'a -> int) -> 'a t -> bool
|
|||
val group_succ_by : ?eq:('a -> 'a -> bool) -> 'a t -> 'a list t
|
||||
(** Group equal consecutive elements. Linear time.
|
||||
Formerly synonym to [group].
|
||||
{b note}: Order of items in each list is unspecified.
|
||||
@since 0.6 *)
|
||||
|
||||
val group_by : ?hash:('a -> int) -> ?eq:('a -> 'a -> bool) ->
|
||||
'a t -> 'a list t
|
||||
(** Group equal elements, disregarding their order of appearance.
|
||||
The result iterator is traversable as many times as required.
|
||||
precondition: for any [x] and [y], if [eq x y] then [hash x=hash y] must hold.
|
||||
{b note}: Order of items in each list is unspecified.
|
||||
@since 0.6 *)
|
||||
|
||||
val count : ?hash:('a -> int) -> ?eq:('a -> 'a -> bool) ->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue