Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Why won't my playground finish compiling when I create a dictionary of multiple dictionaries.

I wan to create a library of hard coded information for practice. I have no problem when I create my struct that contains a library of only one library. When I start adding multiple libraries within the same constant my playground never stops compiling.

Would some one be able to tell me what's wrong with my struct implementation?

import Foundation

struct BarLibrary { let library = [ [ "name": "Buffalo Wild Wings", "address": "2241 U.S. 1, North Brunswick Township, NJ 08902",

        "Monday" : [   "dailyDrinkSpecial": "$3 Miller Light Drafts",
                        "happyHour": "(4pm-7pm)",
                        "happyHourDeals": "$1 Off Draft Beers  $4 Absolut, Captian Morgan, & Jack Daniels Drinks",
                        "entertainment": "None"
                    ],
        "Tuesday" : [   "dailyDrinkSpecial": "$2 Draft Pints",
                        "happyHour": "(4pm-7pm)",
                        "happyHourDeals": "$1 Off Draft Beers  $4 Absolut, Captian Morgan, & Jack Daniels Drinks",
                        "entertainment": "None"
                    ],
        "Wednesday":[   "dailyDrinkSpecial": "$1 Domestic Drafts",
                        "happyHour": "(4pm-7pm)",
                        "happyHourDeals": "$1 Off Draft Beers  $4 Absolut, Captian Morgan, & Jack Daniels Drinks",
                        "entertainment": "None"
                    ],
        "Thursday": [   "dailyDrinkSpecial": "$3 Bud Light Drafts",
                        "happyHour": "(4pm-7pm)",
                        "happyHourDeals": "$1 Off Draft Beers  $4 Absolut, Captian Morgan, & Jack Daniels Drinks",
                        "entertainment": "None"
                    ],
        "Friday" :  [   "dailyDrinkSpecial": "None",
                        "happyHour": "(4pm-7pm)",
                        "happyHourDeals": "$1 Off Draft Beers  $4 Absolut, Captian Morgan, & Jack Daniels Drinks",
                        "entertainment": "None"
                    ],
        "Satuday" : [   "dailyDrinkSpecial": "$3 Bud Light Drafts",
                        "happyHour": "(4pm-7pm)",
                        "happyHourDeals": "$1 Off Draft Beers  $4 Absolut, Captian Morgan, & Jack Daniels Drinks",
                        "entertainment": "None"
                    ],
        "Sunday" :  [   "dailyDrinkSpecial": "$3 Coors Light Drafts",
                        "happyHour": "(4pm-7pm)",
                        "happyHourDeals": "$1 Off Draft Beers  $4 Absolut, Captian Morgan, & Jack Daniels Drinks",
                        "entertainment": "None"
                    ]

    ],

    [
        "name": "Olive Branch",
        "address": "37 Bartlett St, New Brunswick NJ 08901",

        "Monday" : [   "dailyDrinkSpecial": "$2.50 Shiner Bock Drafts,              $3 Smirnoff Drinks",
                        "happyHour": "(3pm-8pm)",
                        "happyHourDeals": "$1 Coors Light Mugs",
                        "entertainment": "None"
                    ],
        "Tuesday" : [   "dailyDrinkSpecial": "$1.50 Yuengling Drafts, $3 Don Q Drinks",
                        "happyHour": "(3pm-8pm)",
                        "happyHourDeals": "$1 Coors Light Mugs",
                        "entertainment": "Live DJ (10pm-2am)"
                    ],
        "Wednesday":[   "dailyDrinkSpecial": "$3.75 San Adams Drafts, $3 Captain Morgan Drinks",
                        "happyHour": "(3pm-8pm)",
                        "happyHourDeals": "$1 Coors Light Mugs",
                        "entertainment": "Live DJ (10pm-2am)"
                    ],
        "Thursday": [   "dailyDrinkSpecial": "$2.50 Coors Light 16oz Cans, $3 Smirnoff Drinks",
                        "happyHour": "(3pm-8pm)",
                        "happyHourDeals": "$1 Coors Light Mugs",
                        "entertainment": "Live DJ (10pm-2am)"
                    ],
        "Friday" :  [   "dailyDrinkSpecial": "$2.50 Don Q Drinks, $15 Corona Bucket",
                        "happyHour": "(3pm-8pm)",
                        "happyHourDeals": "$1 Coors Light Mugs",
                        "entertainment": "Live DJ (10pm-2am)"
                    ],
        "Satuday" : [   "dailyDrinkSpecial": "$3 Jeremiah Weed Drinks, $3.75 Blue Moon Drafts",
                        "happyHour": "None",
                        "happyHourDeals": "None",
                        "entertainment": "Live DJ (10pm-2am)"
                    ],
        "Sunday" :  [   "dailyDrinkSpecial": "$3 Coors Light 16oz Cans, $3 Don Q Drinks",
                        "happyHour": "None",
                        "happyHourDeals": "None",
                        "entertainment": "None"
                    ]

    ]

]

}