-
Notifications
You must be signed in to change notification settings - Fork 83
Switch from BatEnum
to Seq
#1443
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
Conversation
What is still missing here? |
A new batteries release would allot switching many |
Batteries 3.9.0 has now been released, so that should allow porting some of the previously problematic places as well. |
6388252
to
fe0608d
Compare
There's now a conflict with PR #1623 which added a component to |
@karoliineh: Is this now ready for review? |
Yes |
Should we add semgrep rules to prevent adding new code that uses |
Yes, although I just tried and after these changes the rule still seems to find remaining instances. |
A try on switching to the more standard
Seq.t
inEnum
instances where possible as proposed in #1437Some things that I noticed:
Enum.cartesian_product
is calledproduct
inSeq
Enum.uncombine
is calledunzip
(orsplit
) inSeq
Enum.fold
is calledfold_left
inSeq
Enum.uniq
inSeq
to_seq
inBatHashtbl
to_seq_keys
inBatHashtbl
as in the Ocaml standard libraryHashtbl
TODO
Seq
functions are that new. (Bump OCaml lower bound to 4.14 #1448)