brewery
notashelf /
f6481b3c0120ff2f5a3abc60b19cd48bb97581ab

nixir

public

Import-resolving Nix IR plugin

Star0tarball
clone
ssh://git@git.notashelf.dev:33/notashelf/nixir.git
tests/fixtures/list_concat.nixNix15 lines274 B
1
# Test list concatenation operator ++
2
let
3
  list1 = [1 2 3];
4
  list2 = [4 5 6];
5
  empty = [];
6
in {
7
  # Basic concatenation
8
  combined = list1 ++ list2;
9
10
  # Concatenate with empty list
11
  with_empty = list1 ++ empty;
12
13
  # Nested concatenation
14
  triple = [1] ++ [2] ++ [3];
15
}