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 Object-Oriented Swift Complex Data Structures Methods

Ranak Bansal
Ranak Bansal
1,207 Points

Point Instances?

I understand what instances are, but what does Pasan mean when he states that we are making "Point Instances" are those the lower bound and upper bound constants? What does Pasan mean when he says that we are returning an array of point instances.

Thanks

2 Answers

Taylor Schimek
Taylor Schimek
19,318 Points

"Point instance" is referring to an instance of the Point struct. The method he's writing (points(inRange)) will return an array of instances of the Point struct that are in range of the current Point that the method is called on.

Goodness. I hope that makes sense.

Ranak Bansal
Ranak Bansal
1,207 Points

Yeah that makes sense, thanks for clearing it up.