This is explained better with an example in the "Ranges" section right above
This commit is contained in:
parent
fa1609fa5d
commit
3a19246653
|
@ -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.
|
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
|
#### List Comprehensions
|
||||||
```
|
```
|
||||||
import future # required for the list comprehension syntactical sugar
|
import future # required for the list comprehension syntactical sugar
|
||||||
|
|
Loading…
Reference in New Issue