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



Hello guys.

Firstly I would like to thank you for such a great opportunity to study with you.

I have some questions regarding Dictionaries material. Before asking this question I've read official swift guide at https://developer.apple.com and some additional resources.

Here is my question. What is the difference between these two empty dictionaries:

let test : [[ String:String ]] = [] and let test : [Dictionary<String, Any>] = []

Why in the first case they use double [[ ]] and in the second case the characters are mostly different? And why in the second example they added Dictionary word?

So, what I would like to see from you.

1) I would appreciate if you use human language) 2) Explain the difference between those 2 examples 3) Explain when each should be used 4) Provide your own examples with short explanations

A huge thank you in advance. I know I may sound silly, but I could not find the answer. Thank you again