Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Problem with NSSet map #46

Open
viking2009 opened this issue Oct 12, 2013 · 2 comments
Open

Problem with NSSet map #46

viking2009 opened this issue Oct 12, 2013 · 2 comments

Comments

@viking2009
Copy link

should be fixed with

for (id object in self) {
    id newObject = block(object);
    if (newObject)
        [array addObject:newObject];
}
@orta
Copy link
Contributor

orta commented Feb 18, 2014

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
Copy link
Contributor

orta commented Feb 18, 2014

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants