aboutsummaryrefslogtreecommitdiff
path: root/examples/strict.fusp
blob: 57951122d36b8d30f38da7e3a314b135861e14f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
sub a b = code sub a b;

take 0 _       = [];
take _ []      = [];
take n ![x:xs] = [x:take (sub 1 n) xs];

repeat 0 x = [];
repeat n x = [x:repeat (sub 1 n) x];

main = take 1 (repeat 200 5);