-
Notifications
You must be signed in to change notification settings - Fork 12
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
add abstract type AbstractCircularArray
#30
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #30 +/- ##
===========================================
- Coverage 100.00% 98.03% -1.97%
===========================================
Files 1 1
Lines 50 51 +1
===========================================
Hits 50 50
- Misses 0 1 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
can you keep the owner's code styles, e.g. spaces and braces? |
87cddee
to
2f67b8d
Compare
I have removed the accidental formatting of the files, and fixed the commit history. Does this repo adhere to any particular style? I wasn't able to reconcile the owners code style with options in JuliaFormatter. Cheers. |
2f67b8d
to
89f76a9
Compare
changing the style brings a lot of fake changes making the history harder to track. |
Yeah I understand that, but it would be useful if the author could commit a .JuliaFormatter.toml corresponding to their preferred formatting. I'll create an issue. |
Style issues aside, I am not sure I like this idea. |
This feature is motived by the following problem: In package In package If I could define the I understand I could just unwrap and rewrap with |
I think it would be useful to have an abstract type here that assumes circular indexing.
With this implementation, types that subtype
AbstractCircularArray
will work out of the box provided the parent array is stored in a fielddata
. If this is not the case thenBase.parent
should be overloaded.All tests pass so this should hopefully not break anything.
If you are interesting in merging, I will add docs and some tests.