-
Notifications
You must be signed in to change notification settings - Fork 609
feat: introduce slices #8947
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
feat: introduce slices #8947
Conversation
433b4dd
to
b131e8a
Compare
15482bc
to
ce1698d
Compare
3496e27
to
48385b9
Compare
Mathlib CI status (docs):
|
@david-christiansen I think you are being notified because you are the code owner of |
It all looks good to me :) |
f3b4e38
to
1c51792
Compare
320a364
to
40d2c99
Compare
1c51792
to
59e070c
Compare
This PR introduces polymorphic slices in their most basic form. They come with a notation similar to the new range notation.
Subarray
is now also a slice and can produce an iterator now. It is intended to migrate more operations ofSubarray
to theSlice
wrapper type to make them available for slices of other types, too.The PR also moves the
filterMap
combinators intoInit
because they are used internally to implement iterators on array slices.