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 ranges for subarray #17

Open
LGala opened this issue Oct 16, 2022 · 0 comments
Open

add ranges for subarray #17

LGala opened this issue Oct 16, 2022 · 0 comments
Assignees
Labels
feat wanted I want this to be added

Comments

@LGala
Copy link
Member

LGala commented Oct 16, 2022

// List(1, 2, 3)
const list = List(1, 2, 3, 4)[0 : 2]

// List(3, 4, 1, 2)
const list = List(1, 2, 3, 4)[2 : 1] 

// List(1, 2, 3)
const list = List(1, 2, 3, 4)[: 2] 

// List(3, 4)
const list = List(1, 2, 3, 4)[2 :] 
@LGala LGala self-assigned this Oct 16, 2022
@LGala LGala added the feat wanted I want this to be added label Oct 16, 2022
@LGala LGala moved this from Todo to Backlog in tasks-board Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat wanted I want this to be added
Projects
Status: Backlog
Development

No branches or pull requests

1 participant