Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Fast enumeration of dictionary keys
for (id aKey in dictionary)
BOOL matches = ... // test if key meets requirements here
if (matches)
return [dictionary objectForKey:aKey];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment