about summary refs log tree commit diff
path: root/tests/lang/eval-okay-any-all.nix
blob: a3f26ea2aa83704655a244ecee05887523743cfd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
with builtins;

[ (any (x: x == 1) [])
  (any (x: x == 1) [2 3 4])
  (any (x: x == 1) [1 2 3 4])
  (any (x: x == 1) [4 3 2 1])
  (all (x: x == 1) [])
  (all (x: x == 1) [1])
  (all (x: x == 1) [1 2 3])
  (all (x: x == 1) [1 1 1])
]