summaryrefslogtreecommitdiff
path: root/3 resources/nix/language/Let.md
blob: bfb4b3162582582e839a15facaf424c3e40d19bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#nix #keyword

---
Keyword: `let`
Used to assign variables that can be used in an expression immediately following the let-binding.
```nix
let
  one = 1;
in {
  two = one + 1;
}
```