Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.



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