added practicum files, updated gitignore
[fp1415.git] / files / practicum / ReducerenVanLijsten.icl
1 module ReducerenVanLijsten
2
3 import StdEnv
4
5 // 1.
6 Start
7 = [] ++ []
8
9
10 // 2.
11 Start
12 = [] ++ [x 0,x 1] ++ []
13
14
15 // 3.
16 Start
17 = [[]] ++ [x 0,x 1]
18
19
20 // 4.
21 Start
22 = [[x 0,x 1]] ++ [[]]
23
24
25 // 5.
26 Start
27 = [] ++ ([x 0] ++ ([x 1,x 2] ++ [x 3,x 4,x 5]))
28
29
30 // 6.
31 Start
32 = (([] ++ [x 0]) ++ [x 1,x 2]) ++ [x 3,x 4,x 5]
33
34 x i = "x" +++ toString i