on master help sign in
Change app to ++ in tutorial (typo)
d4861b2Edwin Brady
tutorial/modules.tex+1−1
@@ -24,7 +24,7 @@ insert x (Node l v r) = if (x < v) then (Node (insert x l) v r)
24
24
25toList : BTree a -> List a
25toList : BTree a -> List a
26toList Leaf = []
26toList Leaf = []
27−toList (Node l v r) = app (toList l) (v :: toList r)
27+toList (Node l v r) = toList l ++ (v :: toList r)
28
28
29toTree : Ord a => List a -> BTree a
29toTree : Ord a => List a -> BTree a
30toTree [] = Leaf
30toTree [] = Leaf