We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
过滤应该和比较没有关系吧,直接使用入参函数就好了?
The text was updated successfully, but these errors were encountered:
items := []Item{ {Id: 1}, {Id: 2}, {Id: 3}, {Id: 4}, {Id: 5}, } newCollection := collection.NewCollection(items) filter := newCollection.Filter(func(item Item, key int) bool { return item.Id == 2 }) fmt.Println(filter) fmt.Println(newCollection)
&{[{1} {2} {3} {4} {5}] 0xc0000a8030 0x494aa0 } &{[{1} {2} {3} {4} {5}] 0xc0000a8030 0x494aa0 }
Sorry, something went wrong.
#33 写了个pr可以看看
No branches or pull requests
过滤应该和比较没有关系吧,直接使用入参函数就好了?
The text was updated successfully, but these errors were encountered: