How to merge two hands of cards together in Haskell?

Published: 19/11/2019
How to merge two hands of cards together in Haskell?
Source: STACKOVERFLOW.COM

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 S

Read more
Related news
Comment
FACEBOOK