blob: 44022a9e0c4fe4716c8a23725366df8997058ace (
plain) (
blame)
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 ]
])
]
|