Commit graph

91 commits

Author SHA1 Message Date
Josh Berdine
06d7e26941 Switch exceptions used for control flow from global to local
Signed-off-by: Josh Berdine <josh@berdine.net>
2025-02-02 13:24:09 +00:00
Simon Cruanes
399e95b50f
reformat 2024-01-09 17:39:18 -05:00
ilo Kali
92d0022079
Update Iter.ml to use mutable fields instead of refs (#44)
Update Iter.ml to use mutable fields instead of refs

`type 'a node = Nil | Cons of 'a array * int ref * 'a node ref` was changed to `type 'a node = Nil | Cons of { a : 'a array; mutable n : int; mutable tl : 'a node }` and all functions in MList were updated accordingly
2024-01-09 17:38:47 -05:00
Simon Cruanes
4f47de66fe
prepare for 1.8 2023-11-15 23:15:35 -05:00
Olivier Nicole
4bf00eabad Add Iter.map_while 2023-11-15 22:50:16 -05:00
Master Builder
67c46b6ce4 fix(map_by_2): Fixed formatting 2023-08-04 21:11:57 -04:00
Master Builder
6fdbc2c88f fix(map_by_2): Fixed bug in implementation and added some unit tests 2023-08-04 21:11:57 -04:00
Simon Cruanes
d410860533
prepare for 1.7 2023-05-15 09:18:15 -04:00
Simon Cruanes
37a160579a
remove deps no longer needed 2023-05-15 09:18:15 -04:00
Simon Cruanes
02c3e954bf
add let operators in Infix 2023-05-04 12:33:00 -04:00
Simon Cruanes
303686319d
remove shims, require OCaml >= 4.08 2023-05-04 12:32:42 -04:00
Ryan M. Moore
b65be73022 Add seeding section with example 2023-05-03 18:34:24 -04:00
Ryan M. Moore
8322b2b201 Add docs about seeding random generator 2023-05-03 15:26:49 -04:00
Simon Cruanes
f1d14dd030 fix: IO.write_lines should produce an empty file for an empty iter 2023-04-21 14:37:10 -04:00
Simon Cruanes
f36a9fc5fc
move benchs out of src/ 2022-10-18 16:48:13 -04:00
Simon Cruanes
8983f3410a
doc 2022-10-18 15:42:59 -04:00
Simon Cruanes
d822d023a2
chore 2022-10-18 15:41:38 -04:00
Simon Cruanes
d1e0400c07
detail 2022-10-18 15:37:46 -04:00
Simon Cruanes
fc254a5d89
add ocamlformat; reformat; migrate off qtest 2022-10-18 15:31:14 -04:00
Simon Cruanes
688689b18b
prepare for 1.5 2022-07-06 22:13:38 -04:00
Simon Cruanes
a3b3426365
forgot value in labels 2022-03-19 10:24:38 -04:00
Simon Cruanes
173da38366
use Seq, remove Stream entirely to be ready for OCaml 5.0; add of_gen_once 2022-03-19 10:24:04 -04:00
Simon Cruanes
65ab9376b0
prepare for 1.4 2022-02-22 11:05:27 -05:00
Simon Cruanes
66dec7710b
add missing @since 2022-01-07 16:57:26 -05:00
Geoff Hulette
84061bcb69 Added for_each and for_eachi 2022-01-07 13:11:48 -08:00
Simon Cruanes
9020863244
cleanup 2021-11-19 10:08:00 -05:00
Simon Cruanes
b077feaafb
simplify dune setup 2021-11-19 09:52:18 -05:00
Simon Cruanes
0d2cc1c01e
perf: add [@inline] on many combinators 2021-11-19 09:47:22 -05:00
Simon Cruanes
28f50adc63 remove sequence 2021-01-08 13:13:57 -05:00
Simon Cruanes
28bff9b530 doc: make it clearer the order of elements in group_by is unspecified 2021-01-08 11:20:48 -05:00
Simon Cruanes
b63452c7a5 disable warn-error 2020-05-13 09:53:44 -04:00
Simon Cruanes
75769e37b6 fix mistake in shims 2019-03-16 12:27:15 -05:00
Simon Cruanes
3f035e7dc4 fix: use Stdlib instead of Pervasives 2019-03-16 12:15:44 -05:00
Simon Cruanes
09c8b03ce4 fix: missing dep on unix for 4.08 2019-03-16 12:00:00 -05:00
Simon Cruanes
4747ecc8d8 add shims with dune magic for 4.08 compat 2019-03-16 11:58:31 -05:00
Drup
0e27e0f4da Preparing the release. 2019-03-08 21:42:11 +01:00
Drup
37cfdbef0b Use better header levels. 2019-03-08 20:19:50 +00:00
Drup
cb052da2c8 Small improvements in the organization of the API doc. 2019-03-08 19:15:53 +00:00
Simon Cruanes
fda3ee02d1 minor cleanup 2019-03-08 12:07:54 -06:00
Drup
fd8ae7559e Iterification. 2019-03-08 16:40:19 +00:00
Fabian
0b67b4641b Add from_labelled_iter 2019-03-08 16:38:46 +00:00
Simon Cruanes
b325eae2d8 fix: restore {to,of}_seq for compatibility purpose 2019-01-29 13:26:16 -06:00
Simon Cruanes
d90cbe1920 feat: rename {of,to}_seq into {of,to}_iter 2018-12-13 19:04:10 -06:00
Simon Cruanes
1150098cd2 chore: repair build of benchmarks, fix warnings 2018-12-13 18:38:53 -06:00
Simon Cruanes
97d4ac78a5 chore: rename to iter 2018-12-13 18:31:41 -06:00
Simon Cruanes
85fd4baf69 chore: migrate to dune and opam2 2018-10-12 18:11:26 -05:00
Simon Cruanes
4c7f72e7f6 style: remove warning and long copyright header 2018-06-27 10:00:35 -05:00
Simon Cruanes
168fafa157 perf: use raise_notrace for internal exceptions 2018-06-27 10:00:01 -05:00
Simon Cruanes
0eeebdc555 perf: use Set.elements to convert to list 2018-06-01 19:48:17 -05:00
Simon Cruanes
062d8bd08e fix(compat): compat with 4.07
unfortunate collision with new iterators
2018-04-17 11:19:50 -05:00