Updated Nim for Python Programmers (markdown)
This commit is contained in:
parent
04db2f4e62
commit
58bff71436
|
@ -147,3 +147,10 @@ Use [Tables](http://nim-lang.org/tables.html)
|
||||||
|
|
||||||
See [this](http://rosettacode.org/wiki/Abstract_type#Nim)
|
See [this](http://rosettacode.org/wiki/Abstract_type#Nim)
|
||||||
|
|
||||||
|
### Ternary operator
|
||||||
|
|
||||||
|
``` Nim
|
||||||
|
var is_happy = if has_cat(): "quite" else: "not much"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue