Skip to content

Instantly share code, notes, and snippets.

@joelrfcosta
Last active December 17, 2015 06:28
Show Gist options
  • Save joelrfcosta/5565053 to your computer and use it in GitHub Desktop.
Save joelrfcosta/5565053 to your computer and use it in GitHub Desktop.
An block declaration and usage example
int multiplier = 7;
int (^myBlock)(int) = ^(int num) {
return num * multiplier;
};
printf("%d", myBlock(3));
// prints "21"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment