public IEnumerable <IEnumerable <Card> > GetFourOfAKinds() { return(_getFourOfAKinds ?? (_getFourOfAKinds = CardsByRank.Where(group => group.Count() == 4))); }
public IEnumerable <IEnumerable <Card> > GetPairs() { return(_getPairs ?? (_getPairs = CardsByRank.Where(group => group.Count() == 2))); }