This is explained better with an example in the "Ranges" section right above

This commit is contained in:
konqoro 2017-02-17 23:25:07 +02:00
parent fa1609fa5d
commit 3a19246653
1 changed files with 0 additions and 2 deletions

View File

@ -168,8 +168,6 @@ Use [Nim sequences](http://nim-lang.org/docs/tut1.html#advanced-types-sequences)
Nim arrays and sequences can hold only items of the same type.
Also be aware that mylist[0..2] returns the first 3 elements (not 2), but cause a boundary error if there are less elements.
#### List Comprehensions
```
import future # required for the list comprehension syntactical sugar