views:

16

answers:

1

Hi, i am trying to understand the concept of blocks. What i've read so far seems to be conceptually similar to anonymous functions in javascript. Is this correct?

A: 

Yes. Blocks in Objective-C are closures.

Georg