Updated Nim for Python Programmers (markdown)
This commit is contained in:
parent
3e31df62a1
commit
1817383ce5
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue