Can't figure out how to properly type my N-ary tree

后端 未结 0 808
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 02:28

I made the following N-ary tree data type:

data Tree a = Leaf a | Node a [Tree a] deriving (Show)

with the following method:

l         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题