mirror of
https://github.com/Noratrieb/idris-learning.git
synced 2026-01-14 13:05: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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue