blob: 2fce49219f2799176cc56de4adb7954286eb89e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
append [] ys = ys;
append [x:xs] ys = [x:append xs ys];
flatten [] = [];
flatten [h:t] = append h (flatten t);
isEmpty [] = 1;
isEmpty _ = 0;
hd [x:_] = x;
tl [_:x] = x;
|