Skip to content

Allow chaining of filterKeys and mapValues #295

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

Merged
merged 1 commit into from
Feb 5, 2020

Conversation

NthPortal
Copy link
Contributor

@NthPortal NthPortal commented Jan 18, 2020

Fix implementation of IterableView#filterKeys to not require an
implicit CBF, and add a commented-out implementation of
IterableView#mapValues that does not require an implicit CBF.

Add an implicit method to create a CBF so that
IterableView#mapValues can be chained in front of
IterableView#filterKeys.

Fixes #294

@NthPortal NthPortal added the library Related to compat library code (not rewrite rules) label Jan 18, 2020
@NthPortal NthPortal force-pushed the topic/filterKeys-fix/PR branch from 8a29b41 to 9470108 Compare February 5, 2020 00:00
@NthPortal NthPortal changed the title Fix implementation of filterKeys Allow chaining of filterKeys and mapValues Feb 5, 2020
Fix implementation of `IterableView#filterKeys` to not require an
implicit CBF, and add a commented-out implementation of
`IterableView#mapValues` that does not require an implicit CBF.

Add an implicit method to create a CBF so that
`IterableView#mapValues` can be chained in front of
`IterableView#filterKeys`.
@NthPortal NthPortal force-pushed the topic/filterKeys-fix/PR branch from 9470108 to cc47fe2 Compare February 5, 2020 00:01
@julienrf julienrf merged commit 471fce0 into scala:master Feb 5, 2020
@julienrf
Copy link
Contributor

julienrf commented Feb 5, 2020

Thanks @NthPortal!

@NthPortal NthPortal deleted the topic/filterKeys-fix/PR branch February 5, 2020 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
library Related to compat library code (not rewrite rules)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IterableView#filterKeys and #mapValues cannot be chained
2 participants