A modern Go utility library which provides helpers (map, find, contains, filter, ...)
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
andig opened this issue 3 years ago · comments
I would see this as similar to Filter but returning true/false instead of slice:
Filter
r := funk.Contains([]int{1, 2, 3, 4}, func(x int) bool { return x == 3 }) // true