Replies: 1 comment 1 reply
-
Slicing happens "between" elements. Slicing 10 means skip the first 10 items. In the case of a length 11+ collection that would mean "cut it between 10 and 11", but equally valid is "cut it after 10". Cutting after 10 for a 10-item collection means "return an empty collection". Slicing 11 means "skip the first 11 items". In the case of a 10 item collection it throws an exception to represent "I can't find the 11th item". |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Guess the result of operations.
Beta Was this translation helpful? Give feedback.
All reactions