Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additions to the module Seq #10583

Merged
merged 56 commits into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
fe036e6
Remove a useless auxiliary function in [Seq.fold_left].
fpottier Aug 27, 2021
e3d1420
Express [Seq.iter] directly as a recursive function.
fpottier Aug 27, 2021
4946c71
Add many new functions in Seq.
fpottier Aug 24, 2021
1e229e9
Add new tests for the module Seq.
fpottier Aug 24, 2021
904f4f2
Improve the documentation comments at the top of the module Seq.
fpottier Aug 27, 2021
9094c88
Improve the documentation of existing functions in the module Seq.
fpottier Aug 27, 2021
6fbf7ba
Re-order the old and new functions together in Seq.
fpottier Aug 27, 2021
9b50b2b
some post-review fixes
c-cube Aug 28, 2021
51cf044
rename dispatch into partition_either
c-cube Aug 28, 2021
df1a456
update changelog
c-cube Sep 2, 2021
a33b927
modifications from reviews
c-cube Sep 27, 2021
0d84b04
remove ap
c-cube Sep 27, 2021
7e75e85
hide Seq.diagonals, as an implementation detail
c-cube Sep 27, 2021
5578fbc
Stray whitespace.
fpottier Oct 20, 2021
edb8cd7
Clarify the definition of "ephemeral". Define "affine" as a special c…
fpottier Oct 20, 2021
1ddbaaf
Seq: remove "functional iterators" from the title.
fpottier Oct 20, 2021
1ed8f82
Seq: remove outdated references to [head] and [tail] in comments.
fpottier Oct 20, 2021
5d5d73e
Seq: indicate that [iter], etc. can be applied to infinite sequences.
fpottier Oct 20, 2021
012c38e
Seq: clarify the documentation of [is_empty].
fpottier Oct 20, 2021
8846b1f
Seq: use the word [orbit] in the description of [iterate].
fpottier Oct 20, 2021
ac88d15
Seq: replace [partition_either] with [partition_map].
fpottier Oct 20, 2021
b5fd396
testsuite/tests/lib-seq/test.ml: remove a useless auxiliary definition.
fpottier Oct 20, 2021
76e982e
Seq: remove the comment that mentions "reading data from an external …
fpottier Oct 20, 2021
400e00a
Seq: mention antidiagonals in a comment.
fpottier Oct 20, 2021
bb909c4
Seq: remove two blank lines.
fpottier Oct 20, 2021
9570433
Seq: clarify the spec of the functions that consume two sequences.
fpottier Oct 20, 2021
976c36f
Seq: restore [concat] as in 4.13, without a [sep] optional argument.
fpottier Oct 20, 2021
17e3bf8
Seq: rename [product_with] to [map_product].
fpottier Oct 20, 2021
dd5fa7d
Seq: implement [once] using [Atomic.exchange].
fpottier Oct 20, 2021
fe95d29
Seq: document that [to_iterator] produces a non-thread-safe iterator.
fpottier Oct 20, 2021
dafdf25
Seq: change [cycle] so that [cycle empty] is empty.
fpottier Oct 20, 2021
07e9b4e
Seq: fix a comment.
fpottier Oct 20, 2021
42e15c8
Seq: avoid a few long lines over 80 columns.
fpottier Oct 20, 2021
91f6479
Update stdlib/.depend.
fpottier Oct 20, 2021
9e4a967
Remove an obsolete mention of [up]. Add a different remark instead.
fpottier Oct 21, 2021
51f130f
Add [split] and [combine] as aliases for [zip] and [unzip].
fpottier Oct 21, 2021
a784873
Note that [memoize] is not thread-safe.
fpottier Oct 21, 2021
3344a40
Seq: always leave a blank line before @since, for uniformity.
fpottier Oct 21, 2021
938a2a0
Avoid shadowing [cycle] with [cycle]. Define [cycle_nonempty].
fpottier Oct 28, 2021
f968f2f
Remove [uniq].
fpottier Oct 28, 2021
907a3b0
Reformulate a comment about [is_empty].
fpottier Oct 28, 2021
eb0dd0c
Add an [@inline] annotation.
fpottier Oct 28, 2021
bf2b5dc
Fix an internal comment.
fpottier Oct 28, 2021
20fc119
Add a comment on the distinction between [for_all2] and [equal].
fpottier Oct 28, 2021
c72af4c
Implementation comments about [iterate] and [scan].
fpottier Oct 28, 2021
f77e025
stdlib/seq.mli: English.
fpottier Nov 2, 2021
7d7c9d8
Typo.
fpottier Nov 2, 2021
699422a
stdlib/seq.mli: hyperlink.
fpottier Nov 2, 2021
b17299f
stdlib/seq.mli: hyperlink.
fpottier Nov 2, 2021
66fd26e
stdlib/seq.mli: English.
fpottier Nov 2, 2021
6b85e95
stdlib/seq.mli: English.
fpottier Nov 2, 2021
a787dca
Remove Seq.combine.
fpottier Nov 2, 2021
7fe0e49
seq.mli: rename iterator to distributor.
fpottier Nov 2, 2021
35660a5
Changes.
fpottier Nov 2, 2021
f9ad8f7
tests/lib-seq: fix the test (missing renaming).
fpottier Nov 2, 2021
cc3f348
Seq: rename distributor to dispenser.
fpottier Nov 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ Working version
(Nicolás Ojeda Bär, review by John Whitington, Daniel Bünzli, David Allsopp
and Xavier Leroy)

* #10583: Add over 40 new functions in Seq.
(François Pottier and Simon Cruanes, review by Nicolás Ojeda Bär,
Daniel Bünzli, Naëla Courant, Craig Ferguson, Wiktor Kuchta, Xavier
Leroy, Guillaume Munch-Maccagnoni, Raphaël Proust, and Gabriel Scherer)

- #10596: Add with_open_bin, with_open_text and with_open_gen to In_channel and
Out_channel. Also, add In_channel.input_all.
(Nicolás Ojeda Bär, review by Daniel Bünzli, Jérémie Dimino, Damien Doligez
Expand Down
9 changes: 8 additions & 1 deletion stdlib/.depend
Original file line number Diff line number Diff line change
Expand Up @@ -637,10 +637,17 @@ stdlib__Scanf.cmx : scanf.ml \
stdlib__Scanf.cmi : scanf.mli \
stdlib.cmi
stdlib__Seq.cmo : seq.ml \
stdlib__Lazy.cmi \
stdlib__Either.cmi \
camlinternalAtomic.cmi \
stdlib__Seq.cmi
stdlib__Seq.cmx : seq.ml \
stdlib__Lazy.cmx \
stdlib__Either.cmx \
camlinternalAtomic.cmx \
stdlib__Seq.cmi
stdlib__Seq.cmi : seq.mli
stdlib__Seq.cmi : seq.mli \
stdlib__Either.cmi
stdlib__Set.cmo : set.ml \
stdlib__Seq.cmi \
stdlib__List.cmi \
Expand Down
8 changes: 5 additions & 3 deletions stdlib/StdlibModules
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
# with lowercase first letters). These must be listed in dependency order.
STDLIB_MODULE_BASENAMES = \
camlinternalFormatBasics camlinternalAtomic \
stdlib pervasives seq option either result bool char uchar \
sys list int bytes string unit marshal obj array float int32 int64 nativeint \
lexing parsing set map stack queue camlinternalLazy lazy stream buffer \
stdlib pervasives either \
sys obj camlinternalLazy lazy \
seq option result bool char uchar \
list int bytes string unit marshal array float int32 int64 nativeint \
lexing parsing set map stack queue stream buffer \
camlinternalFormat printf arg atomic \
printexc fun gc digest random hashtbl weak \
format scanf callback camlinternalOO oo camlinternalMod genlex ephemeron \
Expand Down