-
-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify examples of slice behaviour (#297)
This fixes the examples in the language definition and adds a few more examples to the test suite that mirror this documentation. The first example demonstrates the inclusive-exclusive nature of the indicies. The middle two examples demonstrate the property of `array[:i]` not overlapping with `array[i:]`.
- Loading branch information
1 parent
2ce7cb6
commit 4387c16
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters