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.

iOS Swift 2.0 Collections and Control Flow Control Flow With Loops For In Loops

not sure what to do here

inside of loop? and what code?

// Enter your code below
var results: [Int] = []
for multiplier in 1...10 {
print ("\(multiplier) times 6 is equal to \(multiplier * 6)") 

1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

donnie scantz I saw your comment in my other post about where Pasan talks about the append method. This happened a few videos back. Here's a link to the video:


He briefly mentions the append being a method. This starts at about 13 seconds into the video.

Here is some documentation from Apple regarding specific methods that can be used on an array. Keep in mind that an array is an object (and this might be a little out of the scope of where you're working right now, but they'll get to it). A method is a function that's specified in the definition of a class and can be used on an object.