Files
lix/tests/functional2/repl_characterization/repl_basics/idempotent.md
T
rootile ab8cdcc9b8 tests(f2/repl): migrate basic tests
Change-Id: I22241734a7249d376c86b3a226c5f1a82c03fd33
2026-06-11 16:19:20 +02:00

27 lines
337 B
Markdown

A previously unforced thunk is an attribute set does not lead to indentation when it won't evalutate to a neted structure:
```nix
:p let x = 1 + 2; in [ { inherit x; } { inherit x; } ]
```
```output
[
{ x = 3; }
{ x = 3; }
]
```
Same for a list:
```nix
:p let x = 1 + 2; in [ [ x ] [ x ]]
```
```output
[
[ 3 ]
[ 3 ]
]
```