Updated Nim for Python Programmers (markdown)

This commit is contained in:
Federico Ceratto 2017-08-21 10:14:43 +01:00
parent d81f7f1d48
commit 8e54f2bbd8
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ var a = "hello"
echo a[0..1] # returns "he": ranges are inclusive! See the "Ranges" paragraph echo a[0..1] # returns "he": ranges are inclusive! See the "Ranges" paragraph
``` ```
A [very detailed comparison](https://scripter.co/notes/string-functions-nim-vs-python/)
### Python tuples ### Python tuples
Nim Tuples are close to Python nametuples, see [manual](http://nim-lang.org/docs/manual.html#types-tuples-and-object-types). Nim Tuples are close to Python nametuples, see [manual](http://nim-lang.org/docs/manual.html#types-tuples-and-object-types).