-
Notifications
You must be signed in to change notification settings - Fork 79
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 GenericSequence
, Lengthen
, Shorten
, Split
and Concat
traits.
#50
Conversation
The whole "inverse trait" idea is useful because of arrays like In |
In fact, would you like the idea of me adding |
Wow, very nice ideas! Yes, the methods you mention sound awesome, it would be great if you added them :) |
GenericSequence
, Lengthen
and Shorten
traits.GenericSequence
, Lengthen
, Shorten
, Split
and Concat
traits.
A few changes which cover your other pull request. I've redesigned the I've also added the Also, I've simplified the logic I use for these. Since it's literally just moving/copying data, I've followed your example and simplified things to raw pointer operations. They can't panic, so it's fine. Overall, I'd say it's pretty complete. If you're happy with this then I can't think of anything else to hold off for. Edit: One last naming convention change. |
Thanks! And sorry for the delay in merging :) |
So you're going to hate me for this, but I promise I'm not trying to make things harder on you. I'm working on some new improvements to this stuff that should be ready in a week or two. I just wanted to warn you before doing that semver trick thing in case you are willing to wait. |
Here are some more useful features that allow for easier passing of
GenericArray
via generics, as well as some simple resize methods implemented as inverse traits. I've had to use these a few times already.These really should have been in that last pull request, but I wasn't far enough along in a dependent project to really test it.