ImmutableCardSet.of constructor

ImmutableCardSet.of(
  1. Iterable<Card> cards
)

Creates a ImmutableCardSet from a Iterable<Card>.

Implementation

ImmutableCardSet.of(Iterable<Card> cards)
    : _indexUnion = cards.fold<int>(0, (s, card) => s | card.index);