2 list
<int> a
= sequence
(1, 20);
3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
5 list
<int> b
= randseq
(20);
6 28 27 5 17 44 6 9 40 15 26 49 35 15 48 13 27 25 25 9 6
9 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 28 27 5 17 44 6 9 40 15 26 49 35 15 48 13 27 25 25 9 6
11 list
<int> d
= map
(inc
, a
);
12 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
14 list
<int> e
= reverse
(a
);
15 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
17 list
<int> f
= select
(is_odd
, a
);
18 1 3 5 7 9 11 13 15 17 19
20 int red
= a.reduce
(plus
, 0);
24 list
<int> g
= combine
(plus
, a
, b
);
25 29 29 8 21 49 12 16 48 24 36 60 47 28 62 28 43 42 43 28 26
28 8 12 16 48 24 36 60 28 62 28 42 28 26
31 5 6 6 9 9 13 15 15 17 25 25 26 27 27 28 35 40 44 48 49
33 list
<int> h
= merge
(a
, b
, int_compare
);
34 1 2 3 4 5 5 6 6 6 7 8 9 9 9 10 11 12 13 13 14 15 15 15 16 17 17 18 19 20 25 25 26 27 27 28 35 40 44 48 49
37 1, 2, 3, 4, 5, 5, 6, 6, 6, 7, 8, 9, 9, 9, 10, 11, 12, 13, 13, 14, 15, 15, 15, 16, 17, 17, 18, 19, 20, 25, 25, 26, 27, 27, 28, 35, 40, 44, 48, 49,