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!
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

Kapil Dhawan
1,323 PointsData Type vs Data Structure
Should array in Swift be considered as a data type or data structure? How is it considered in general?
2 Answers
William Li
Courses Plus Student 26,867 PointsIt's both, In Computer Science, Array is considered composite data type
, as well as Data Structure
for storing a series of values.

Kapil Dhawan
1,323 PointsThanks William. As i understand in Swift, It's abstracted. End user doesn't know and need to be aware of the nitty-gritty's and seems like it's more a type than a data structure. But, in languages like C, it's more a data structure.