mirror of
https://github.com/c-cube/iter.git
synced 2025-12-06 11:15:32 -05:00
document to_list
This commit is contained in:
parent
78487de758
commit
b54714957a
1 changed files with 4 additions and 1 deletions
|
|
@ -241,9 +241,12 @@ val map2_2 : ('a -> 'b -> 'c) -> ('a -> 'b -> 'd) -> ('a, 'b) t2 -> ('c, 'd) t2
|
||||||
(** {2 Basic data structures converters} *)
|
(** {2 Basic data structures converters} *)
|
||||||
|
|
||||||
val to_list : 'a t -> 'a list
|
val to_list : 'a t -> 'a list
|
||||||
|
(** Convert the sequence into a list. Preserves order of elements.
|
||||||
|
This function is tail-recursive, but consumes 2*n memory.
|
||||||
|
If order doesn't matter to you, consider {!to_rev_list}. *)
|
||||||
|
|
||||||
val to_rev_list : 'a t -> 'a list
|
val to_rev_list : 'a t -> 'a list
|
||||||
(** Get the list of the reversed sequence (more efficient) *)
|
(** Get the list of the reversed sequence (more efficient than {!to_list}) *)
|
||||||
|
|
||||||
val of_list : 'a list -> 'a t
|
val of_list : 'a list -> 'a t
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue