This commit is contained in:
Simon Cruanes 2017-02-17 17:21:09 +01:00
parent 7cdebbc0f1
commit c5beeb3fb1

View file

@ -95,7 +95,6 @@ underlying hash function):
- : int = 11 - : int = 11
(* now to get the values *) (* now to get the values *)
# Sequence.of_t
# Sequence.of_hashtbl h |> Sequence.map snd |> Sequence.to_list;; # Sequence.of_hashtbl h |> Sequence.map snd |> Sequence.to_list;;
- : string list = ["6"; "2"; "8"; "7"; "3"; "5"; "4"; "9"; "0"; "10"; "1"] - : string list = ["6"; "2"; "8"; "7"; "3"; "5"; "4"; "9"; "0"; "10"; "1"]
---- ----
@ -122,7 +121,7 @@ use `Sequence.(--) : int -> int -> int Sequence.t`.
NOTE: with **flambda** under sufficiently strong NOTE: with **flambda** under sufficiently strong
optimization flags, such compositions of operators optimization flags, such compositions of operators
will be compiled to an actual loop with no overhead! should be compiled to an actual loop with no overhead!
=== Iterating on sub-trees === Iterating on sub-trees