added practicum files, updated gitignore
[fp1415.git] / files / practicum / NotatieHOF.icl
1 module NotatieHOF
2
3 import StdEnv
4
5 f1 :: // geef meest algemene type
6 f1 a b = a b
7
8 f2 :: // geef meest algemene type
9 f2 a b c = a c (b c)
10
11 f3 :: // geef meest algemene type
12 f3 a b = a (a b)
13
14 f4 :: // geef meest algemene type
15 f4 a b c = [x \\ x <- [b .. c] | a x]
16
17 f5 :: // geef meest algemene type
18 f5 a b (c,d) = (a c,b d)
19
20 f6 :: // geef meest algemene type
21 f6 = f5
22
23 f7 :: // geef meest algemene type
24 f7 "-" = -
25 f7 "+" = +
26 f7 "*" = *
27 f7 "/" = /
28
29 Start = 0