robb / Asterism

Asterism is yet another functional toolbelt for Objective-C. It tries to be typesafe and simple.
http://robb.github.io/Asterism/
MIT License
226 stars 12 forks source link

Add support for NSDictionary to NSFastEnumeration-only methods #41

Closed robb closed 10 years ago

robb commented 10 years ago

Consider methods that operate only on id<NSFastEnumeration> such as ASTAll

ASTAll(@{ @"key": @"value" }, someTest);

This will actually evaluate @"key" rather than @"value", which is probably more desired. However, if we add

BOOL ASTAll(NSDictionary *dict, BOOL(^block)(id value));

later, this may lead to some nasty surprises. Better to pre-empt that now and add dictionary versions that call the existing ones with allValues.

Affects