相关疑难解决方法(0)

How to merge two hands of cards together in Haskell?

I'm still very new to Haskell, and I'm curious as to how I would merge two Hand's together, so that, the first hand is placed on top of the second hand. I want it to be an infix operator, namely (<+). Here's some code to assist you. I keep getting an error saying "The type signature for ‘<+’ lacks an accompanying binding".

data Rank = Numeric Integer | Jack | Queen | King | Ace

data Suit = Hearts …
Run Code Online (Sandbox Code Playgroud)

syntax enums haskell definition operators

1
推荐指数
1
解决办法
56
查看次数

标签 统计

definition ×1

enums ×1

haskell ×1

operators ×1

syntax ×1