operator [] method

int operator [](
  1. Card card
)

Returns the number of copies of card in this collection.

This is an alias for count.

Implementation

int operator [](Card card) => count(card);