Updated Nim for Python Programmers (markdown)

This commit is contained in:
konqoro 2016-09-07 01:53:39 +03:00
parent 3e31df62a1
commit 1817383ce5
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ echo lc[ y*2 | ( y <- x ), int ]
### Python sets
Python sets are not like [Nim set type](http://nim-lang.org/docs/manual.html#set-type).
Python sets are not like [Nim set type](http://nim-lang.org/docs/manual.html#types-set-type).
If the values that will go in the set are known beforehand and finite, you can create an Enum for them.
Otherwise you can emulate a Python set using a [HashSet](http://nim-lang.org/docs/sets.html).
The Nim set type is faster and memory-efficient.