diff options
Diffstat (limited to 'nix')
-rw-r--r-- | nix/nix-1p/README.md | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/nix/nix-1p/README.md b/nix/nix-1p/README.md index d7db1917747b..72297a555127 100644 --- a/nix/nix-1p/README.md +++ b/nix/nix-1p/README.md @@ -113,23 +113,23 @@ rec { a = 15; b = a * 2; } Nix has several operators, most of which are unsurprising: -| Syntax | Description | -|----------------------|-----------------------------------------------------------------------------| -| `+`, `-`, `*`, `/` | Numerical operations | -| `+` | String concatenation | -| `++` | List concatenation | -| `==` | Equality | -| `>`, `>=`, `<`, `<=` | Ordering comparators | -| `&&` | Logical `AND` | -| <code>||</code> | Logical `OR` | -| `e1 -> e2` | Logical implication (i.e. <code>!e1 || e2</code>) | -| `!` | Boolean negation | -| `set.attr` | Access attribute `attr` in attribute set `set` | -| `set ? attribute` | Test whether attribute set contains an attribute | -| `left // right` | Merge `left` & `right` attribute sets, with the right set taking precedence | - Make sure to understand the `//`-operator, as it is used quite a lot and is probably the least familiar one. +| Syntax | Description | +|---------------------------|-----------------------------------------------------------------------------| +| `+`, `-`, `*`, `/` | Numerical operations | +| `+` | String concatenation | +| `++` | List concatenation | +| `==` | Equality | +| `>`, `>=`, `<`, `<=` | Ordering comparators | +| `&&` | Logical `AND` | +| <code>||</code> | Logical `OR` | +| `e1 -> e2` | Logical implication (i.e. <code>!e1 || e2</code>) | +| `!` | Boolean negation | +| `set.attr` | Access attribute `attr` in attribute set `set` | +| `set ? attribute` | Test whether attribute set contains an attribute | +| `left // right` | Merge `left` & `right` attribute sets, with the right set taking precedence | + ## Variable bindings |