@@ -4,7 +4,7 @@ import Prelude
5test1 arr = arr !! 0 + arr !! 1 + 1
5test1 arr = arr !! 0 + arr !! 1 + 1
7−test2 = \arr -> case arr of
7+test2 = \arr -> case arr of
8 [x, y] -> x + y
8 [x, y] -> x + y
@@ -16,12 +16,19 @@ test3 = \tree sum -> case tree of
16 One n -> n
16 One n -> n
17 Some (n1 : n2 : rest) -> test3 n1 sum * 10 + test3 n2 sum * 5 + sum rest
17 Some (n1 : n2 : rest) -> test3 n1 sum * 10 + test3 n2 sum * 5 + sum rest
19−test4 = \arr -> case arr of
19+test4 = \arr -> case arr of
22 x : y : xs -> x * y + test4 xs
22 x : y : xs -> x * y + test4 xs
24module Main where
24module Main where
26−main = Trace.trace "Done"
26+import Arrays
33+ then Trace.trace "Done"
34+ else Errors.throwError "Not done"