This commit is contained in:
nora 2021-07-09 14:09:47 +02:00
parent 3a9793f913
commit b9c358c622

View file

@ -84,6 +84,7 @@ insert x orig@(Node left val right) = case compare x val of
EQ => orig
GT => Node left val (insert x right)
-- and it worked on the first try without any type errors lets goooo
listToTree : Ord elem => List elem -> BSTree elem
listToTree xs = listToTreeInner xs Empty
where