Updated Nim for Python Programmers (markdown)

This commit is contained in:
Federico Ceratto 2015-04-09 21:20:00 +01:00
parent 04db2f4e62
commit 58bff71436
1 changed files with 7 additions and 0 deletions

View File

@ -147,3 +147,10 @@ Use [Tables](http://nim-lang.org/tables.html)
See [this](http://rosettacode.org/wiki/Abstract_type#Nim)
### Ternary operator
``` Nim
var is_happy = if has_cat(): "quite" else: "not much"
```