Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create fastfilter() stream method. #6

Open
asuiu opened this issue Feb 14, 2018 · 1 comment
Open

Create fastfilter() stream method. #6

asuiu opened this issue Feb 14, 2018 · 1 comment
Assignees

Comments

@asuiu
Copy link
Owner

asuiu commented Feb 14, 2018

Use already implemented fastmap()

@asuiu asuiu self-assigned this Feb 14, 2018
@asuiu
Copy link
Owner Author

asuiu commented Jun 27, 2020

As a simpler implementation, it can use fastmap behind, in this way:

def fastmap(self, f:Callable)
    return (self.fastmap(lambda _: (_, f(_)) )
        .filter(itemgetter(1))
        .map(itemgetter(0)
        )

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

No branches or pull requests

1 participant