Updated Nim for Python Programmers (markdown)

This commit is contained in:
Federico Ceratto 2015-04-12 00:57:38 +01:00
parent fb065f5088
commit d04062cdbe
1 changed files with 8 additions and 1 deletions

View File

@ -148,7 +148,14 @@ The Nim set type is faster and memory-efficient.
### Dictionaries
Use [Tables](http://nim-lang.org/tables.html)
Use [Tables](http://nim-lang.org/tables.html) for Python dicts,
OrderedTable for Python ordered dicts, and CountTable for Python's Counter.
``` Nim
var a = {"hi": 1, "there": 2}.toTable
echo a["hi"], " ", a.len
assert a.hasKey("hi")
```
### ABC