Skip to content

Instantly share code, notes, and snippets.

@gavrix

gavrix/gist:10488144

Last active Aug 29, 2015
Embed
What would you like to do?
Is it crazy?
((void (^)())@[
^{[self action2];},
^{[self action1];} ][value.boolValue])();
//vs
if (value.booldValue) {
[self action1];
}
else {
[self action2];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment