How to split a list by type in Haskell?

前端 未结 0 1230
深忆病人
深忆病人 2020-11-22 11:20

I am trying to create a split a list by selected type. Here is the type I have created.

data Fruit = Apple | Orange | Banana
 deriving (Eq, Show)

type Set =          


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