A two-dimensional map indexed by suit index and then by rank.
We do not want to use a Map since that cannot be natively used by Immer and may be slow to
copy. Thus, we instead use a two-dimensional Record. (A Record is a normal JavaScript object
at run-time.)
A two-dimensional map indexed by suit index and then by rank.
We do not want to use a
Map
since that cannot be natively used by Immer and may be slow to copy. Thus, we instead use a two-dimensionalRecord
. (ARecord
is a normal JavaScript object at run-time.)