We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Similar to scala collections.
def partition(p: T => Boolean): (TypedPipe[T], TypedPipe[T]) = (filter(p), filterNot(p))
I've run into this use-case a few of times. Seems handy to have. I can send a PR if this sounds sensible. Thanks.
The text was updated successfully, but these errors were encountered:
Sure that would be a good PR, but the implementation should probably be:
val forked = fork (forked.filter(p), forked.filterNot(p))
Also we should comment that sometimes groupBy is what you really want in these cases.
Sorry, something went wrong.
No branches or pull requests
Similar to scala collections.
I've run into this use-case a few of times. Seems handy to have. I can send a PR if this sounds sensible. Thanks.
The text was updated successfully, but these errors were encountered: