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

DropLeft operation #45

Closed
ivancorrales opened this issue Jan 15, 2019 · 3 comments
Closed

DropLeft operation #45

ivancorrales opened this issue Jan 15, 2019 · 3 comments
Labels
good first issue Good for newcomers
Milestone

Comments

@ivancorrales
Copy link
Member

var elements = []int{10,12,7,41,5,6}
res:=koazee.StreamOf(elements).DropLeft(12).Out().Val()
fmt.Println(res)

// [10]

@ivancorrales ivancorrales added the good first issue Good for newcomers label Jan 15, 2019
@ivancorrales ivancorrales added this to the Koazee v1.0.0 milestone Jan 16, 2019
@somen440
Copy link
Contributor

somen440 commented Mar 2, 2019

I would like to address this issue.
So there is a question.

In dropRight issue #44

This operations will be used to drop elements in the steam on the right of the given element

It was written.
DropLeft expected values ​​are not as follows?

expect := []int{12,7,41,5,6}
actual := koazee.StreamOf([]int{10,12,7,41,5,6}).DropLeft(12).Out().Val()
assert.Equal(t, expect, actual)

@ivancorrales
Copy link
Member Author

Hey @mentol310 I really appreciate your job!

Yes That was my thought when I create the issue. Your test would be perfect,

@aswinkarthik
Copy link

Could you close this issue if PR has already been merged?

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

No branches or pull requests

3 participants