gen
gen copied to clipboard
Simple, efficient iterators for OCaml
I have the following code to consume all stdin from user and abstract them over a genrator API: ```ocaml let read_lineedit () = print_string "> "; read_line () let gen_lines...
Possibly worth mentioning: how do you produce an “infinite” range of integers? This is what I did: ``` Gen.int_range 0 max_int ```
skipping
i have not found a way to take only every nth element -- is this possible? have i missed it? more generally, one could think of a list of 'step...