Haskell user defined data type

后端 未结 0 1492
梦如初夏
梦如初夏 2021-01-18 20:49

I have datatype called

data Nesting a b = S (a,b) | C (Nesting a b,Nesting a b)

How can I create a depth function that computes the nesting depth

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