【发布时间】:2021-05-07 12:06:11
【问题描述】:
我不知道如何使用sInsert 函数。你能帮帮我吗?
sInsert :: Ord a => a -> Tree a -> Tree a
sInsert x Nil = Node x Nil Nil
sInsert x (Node a t1 t2) = if x <= a
then Node a (sInsert x t1) t2
else Node a t1 (sInsert x t2)
sInsert (???)
【问题讨论】:
标签: haskell