You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To cite the manual of Map:
val iter : (key -> 'a -> unit) -> 'a t -> unit
iter f m applies f to all bindings in map m. f receives the key as first
argument, and the associated value as second argument. The order in which the
bindings are passed to f is unspecified.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The source code actually implements ordered visiting and it is indeed one of the
great advantages of using a Map instead of a Hashtbl (the other it being
sideeffect free).
So my request is:
Make the current behavior of iter a required one and update the documentation to
read
something like this:
...The bindings are passed to f in increasing order with regard to the ordering
function.
Cheers,
Bene
The text was updated successfully, but these errors were encountered:
Original bug ID: 1947
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Benedikt Grundmann
Version: 3.07
OS: Linux
Submission from: dsl-213-023-227-248.arcor-ip.net (213.23.227.248)
To cite the manual of Map:
val iter : (key -> 'a -> unit) -> 'a t -> unit
iter f m applies f to all bindings in map m. f receives the key as first
argument, and the associated value as second argument. The order in which the
bindings are passed to f is unspecified.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The source code actually implements ordered visiting and it is indeed one of the
great advantages of using a Map instead of a Hashtbl (the other it being
sideeffect free).
So my request is:
Make the current behavior of iter a required one and update the documentation to
read
something like this:
...The bindings are passed to f in increasing order with regard to the ordering
function.
Cheers,
Bene
The text was updated successfully, but these errors were encountered: