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

Filtering Permutations & Combinations #64

Open
PeterShaggyNoble opened this issue Sep 10, 2019 · 0 comments
Open

Filtering Permutations & Combinations #64

PeterShaggyNoble opened this issue Sep 10, 2019 · 0 comments

Comments

@PeterShaggyNoble
Copy link
Contributor

On a recent challenge I needed to get the combinations of an array and then filter them, which got me thinking that an additional, optional function parameter for à & á to apply the filter directly, without the need for f, would be handy. And, in most cases, would save 2 bytes.

I had also considered that maybe making that function parameter a map rather than a filter might be more useful. Apart from my immediate use-case, I couldn't come up with an argument for one over the other but, seeing as the n parameter of those methods is also a filter, of sorts, a filter does probably make most sense.

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

No branches or pull requests

1 participant