common Companion¶ object Companion Functions¶ isLegal¶ fun isLegal(cards: Set<Card>): Boolean Whether cards may form a Deck, without throwing. UIs use this to validate a selection before building a Deck from it.