mirror of
https://github.com/Noratrieb/idris-learning.git
synced 2026-01-16 05:55:02 +01:00
:)
This commit is contained in:
parent
3a9793f913
commit
b9c358c622
1 changed files with 1 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ insert x orig@(Node left val right) = case compare x val of
|
||||||
EQ => orig
|
EQ => orig
|
||||||
GT => Node left val (insert x right)
|
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 : Ord elem => List elem -> BSTree elem
|
||||||
listToTree xs = listToTreeInner xs Empty
|
listToTree xs = listToTreeInner xs Empty
|
||||||
where
|
where
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue