Skip to content

Instantly share code, notes, and snippets.

@onevcat
Created September 20, 2012 09:19
Show Gist options
  • Select an option

  • Save onevcat/3754865 to your computer and use it in GitHub Desktop.

Select an option

Save onevcat/3754865 to your computer and use it in GitHub Desktop.
define block
// 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