Updated Nim for Python Programmers (markdown)

This commit is contained in:
Federico Ceratto 2015-04-12 01:06:54 +01:00
parent d04062cdbe
commit 8035c1dfb6
1 changed files with 6 additions and 0 deletions

View File

@ -139,6 +139,12 @@ echo b[1]
var c = ["hi", 1] # no mixed types please
```
### Python lists
Use [Nim sequences](http://nim-lang.org/tut1.html#sequences)
Nim arrays and sequences can hold only items of the same type.
### Python sets
Python sets are not like [Nim set type](http://nim-lang.org/manual.html#set-type).