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

After the filter, the stream is 0 and the map cannot be recognized as 0 #62

Open
AzraelJi opened this issue Aug 27, 2021 · 0 comments
Open

Comments

@AzraelJi
Copy link

val := koazee.StreamOf(bindSlice)
out := val.Filter(func(x model.ZbizThirdLogin) bool {
return x.Uuid!=nil && *x.Uuid == uid
}).Map(func(x model.ZbizThirdLogin) model.ZbizThirdLogin {
return model.ZbizThirdLogin{
ID: x.ID,
ThirdName: x.ThirdName,
ThirdType: x.ThirdType,
}
}).Out()

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