Created
September 20, 2012 09:19
-
-
Save onevcat/3754865 to your computer and use it in GitHub Desktop.
define block
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Defining a block variable | |
| BOOL (^isInputEven)(int) = ^(int input) | |
| { | |
| if (input % 2 == 0) | |
| return YES; | |
| else | |
| return NO; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment