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

strbasics.setSlice that takes BackwardsIndex #777

Open
juancarlospaco opened this issue Jul 6, 2021 · 0 comments
Open

strbasics.setSlice that takes BackwardsIndex #777

juancarlospaco opened this issue Jul 6, 2021 · 0 comments
Labels

Comments

@juancarlospaco
Copy link
Collaborator

juancarlospaco commented Jul 6, 2021

I have precalc reverse index of a string that I need to cut,
and I want to use setSlice on a string, but it do not take BackwardsIndex, I know is possible to cast it to int,
but would be great an overload to use BackwardsIndex directly, should be doable.

If you have to call aditional functions to use setSlice kinda defeats the purpose of having fast performance.

setSlice(s, slice = ^9 .. ^2 )

/cc @xflywind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant