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

Add string slice extension #57

Closed
deadsoul44 opened this issue Feb 9, 2020 · 1 comment
Closed

Add string slice extension #57

deadsoul44 opened this issue Feb 9, 2020 · 1 comment

Comments

@deadsoul44
Copy link

String slice extension can be very useful. For example:

Instead of:
'awesomeString'.chars.slice(3, -4).joinToString(separator: '')

we could do:
'awesomeString'.slice(3, -4)

Thank you!

@simc
Copy link
Owner

simc commented Mar 3, 2020

Yes I agree. Could you maybe create a PR?

@passsy passsy closed this as completed Mar 3, 2020
@passsy passsy reopened this Mar 3, 2020
mjstel added a commit to mjstel/dartx that referenced this issue Nov 30, 2020
mjstel added a commit to mjstel/dartx that referenced this issue Nov 30, 2020
simc added a commit that referenced this issue Nov 30, 2020
Issue #57. Implement .slice() on string
@passsy passsy closed this as completed Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants