about summary refs log blame commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-partition.nix
blob: 44022a9e0c4fe4716c8a23725366df8997058ace (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 ]
  ])
]