 
 func allSuits() -> [Suit] {
     var all = [Suit]()
-    var generator = Suit.SuitGenerator()
-    while let next = generator.next() {
-        all.append(next)
+    for suit in Suit.Spades {
+        all.append(suit)
     }
     return all
 }

    static func fullDeck() -> [Card] {
        // *** This is the real reason why I wrote this playground: the ability to use generators on suit and rank ***
        var deck = [Card]()
        var suitGenerator = Suit.SuitGenerator()
        while let suit = suitGenerator.next() {
            var rankGenerator = Rank.RankGenerator()
            while let rank = rankGenerator.next() {
                let card = Card(rank: rank, suit: suit)
                deck.append(card)
            }


func allRanks() -> [Rank] {
    var all = [Rank]()
    for rank in Rank.Ace {
        all.append(rank)
    }
    return all
}
