ObjectiveSugar
ObjectiveSugar copied to clipboard
Problem with NSSet map
should be fixed with
for (id object in self) {
id newObject = block(object);
if (newObject)
[array addObject:newObject];
}
This is the same in NSArray map. IMO, this means you can skip on a reject beforehand. Would you accept a PR for this?
Err, I take it back, I just switched to the array version, set should have that check though.