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 Closures in Swift 2 First Class Functions Functions as Parameters

Brian Cao
Brian Cao
1,390 Points

what does it mean to have a function as a constant?

asdf

2 Answers

it means also that you can pass this constant as a parameter to another function, but in reality you are passing a function

Anjali Pasupathy
Anjali Pasupathy
28,883 Points

When you assign a function to a constant, I think it just means that that constant now points to that function and can't be changed to point to another function.