Haskell constructor as variables of functions

前端 未结 0 1368
南旧
南旧 2021-01-01 01:51

I have a type with several constructors wrapping another type; let\'s use the example below (in practice I have many constructors):

data New a = A a | B a


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