on master help sign in
Change app to ++ in tutorial (typo)
commitd4861b2c6d71c08d699063a729e1d0ccb6b25351 authorEdwin Brady <eb@cs.st-andrews.ac.uk> dateThu 2 Aug 2012, 12:55 (14 years ago) parent617dc98
1 file changed+1−1
tutorial/modules.tex+1−1
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)
2424
2525toList : BTree a -> List a
2626toList Leaf = []
27−toList (Node l v r) = app (toList l) (v :: toList r)
27+toList (Node l v r) = toList l ++ (v :: toList r)
2828
2929toTree : Ord a => List a -> BTree a
3030toTree [] = Leaf