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

Operation filterWithIndex #40

Open
ivancorrales opened this issue Jan 15, 2019 · 1 comment
Open

Operation filterWithIndex #40

ivancorrales opened this issue Jan 15, 2019 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@ivancorrales
Copy link
Member

It should be nice provide a filter operation in which beside of the value the index is provided.This could look like

koazee.StreamOf([]string{"a","b"}.FilterWithIndex(func(index int, val string)bool{return true})

@ivancorrales ivancorrales added the good first issue Good for newcomers label Jan 15, 2019
@ivancorrales
Copy link
Member Author

Ideally the existing operation Filter should support both

koazee.StreamOf([]string{"a","b"}.Filter(func(index int, val string)bool{return true})
koazee.StreamOf([]string{"a","b"}.Filter(func(val string)bool{return true})

@ivancorrales ivancorrales added enhancement New feature or request and removed good first issue Good for newcomers labels Jan 15, 2019
@ivancorrales ivancorrales added this to the Koazee v1.0.0 milestone Jan 16, 2019
somen440 added a commit to somen440/koazee that referenced this issue Feb 26, 2019
somen440 added a commit to somen440/koazee that referenced this issue Feb 26, 2019
ivancorrales pushed a commit that referenced this issue Feb 27, 2019
somen440 added a commit to somen440/koazee that referenced this issue Mar 2, 2019
somen440 added a commit to somen440/koazee that referenced this issue Mar 4, 2019
ivancorrales pushed a commit that referenced this issue Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant