about summary refs log blame commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-partition.nix
blob: 0587330ff91716c879f32d93bd45298e8d13fb83 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                    
[
  (builtins.partition (_: true) [ 1 2 3 4 5])
  (builtins.partition (_: false) [ 1 2 3 4 5])
  (builtins.partition (x: x == 2) [ 1 2 3 4 5])

  (builtins.partition (x: (builtins.length x) > 1) [
    [ 1 ]
    [ 1 2 ]
    [ 2 ]
    [ 3 ]
    [ 3 4 ]
  ])
]