How to write a code to recognise the pattern by preset types in Haskell?

前端 未结 0 975
野趣味
野趣味 2020-11-22 16:05

I have made a data set as the following for simple poker game.

data Poker = ACE | TWO deriving (Eq, Show)

type Set = [Poker]

pair, threeKind, fourKind         


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