Updated Nim for Python Programmers (markdown)
This commit is contained in:
parent
1d7e7f64f3
commit
3146cb158e
|
@ -169,7 +169,7 @@ 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.
|
||||||
|
|
||||||
#### List Comprehensions
|
#### List Comprehensions
|
||||||
```
|
```Nim
|
||||||
import future # required for the list comprehension syntactical sugar
|
import future # required for the list comprehension syntactical sugar
|
||||||
|
|
||||||
let x = @[1, 2, 3, 4, 5, 8, 8, 8, 10] # create a Nim sequence
|
let x = @[1, 2, 3, 4, 5, 8, 8, 8, 10] # create a Nim sequence
|
||||||
|
|
Loading…
Reference in New Issue