mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
cleanup
This commit is contained in:
parent
b87f1acc21
commit
64cd3c4e22
@ -12,14 +12,14 @@ efficiency.
|
||||
Nim is efficient, expressive, and elegant.
|
||||
|
||||
```nimrod
|
||||
var # Declare and assign several variables,
|
||||
var # Declare (and assign) variables,
|
||||
letter: char = 'n' # with or without type annotations
|
||||
lang = "N" & "im"
|
||||
n_let : int = len(lang)
|
||||
boat: float
|
||||
truth: bool = false
|
||||
|
||||
let # Use let to declare and bind an variable *once*.
|
||||
let # Use let to declare and bind variables *once*.
|
||||
legs = 400 # legs is immutable.
|
||||
arms = 2_000 # _ are ignored and are useful for long numbers.
|
||||
aboutPi = 3.15
|
||||
|
Loading…
Reference in New Issue
Block a user