========================
object Cards {
type Deck = Seq[Card]
case class Card(r:Rank, s:Suite)
type Rank = Int
sealed trait Suite
case object Spade extends Suite
case object Heart extends Suite
case object Diamond extends Suite
case object Club extends Suite
}
==================================
Granted, all this code is unnecessary in Clojure but there are two benefits of writing them:
1) compilation type check
2) for developers who have no context of playing cards, this provides a clearer picture, while in the Clojure code they will have to browse more code to get the full picture of the data domain.