ObjectiveSugar icon indicating copy to clipboard operation
ObjectiveSugar copied to clipboard

Problem with NSSet map

Open viking2009 opened this issue 11 years ago • 2 comments

should be fixed with

for (id object in self) {
    id newObject = block(object);
    if (newObject)
        [array addObject:newObject];
}

viking2009 avatar Oct 12 '13 16:10 viking2009

This is the same in NSArray map. IMO, this means you can skip on a reject beforehand. Would you accept a PR for this?

orta avatar Feb 18 '14 01:02 orta

Err, I take it back, I just switched to the array version, set should have that check though.

orta avatar Feb 18 '14 02:02 orta