MCPcopy Create free account
hub / github.com/cloud66-oss/starter / Filter

Function Filter

api.go:406–414  ·  view source on GitHub ↗
(vs []string, f func(string) bool)

Source from the content-addressed store, hash-verified

404}
405
406func Filter(vs []string, f func(string) bool) []string {
407 vsf := make([]string, 0)
408 for _, v := range vs {
409 if f(v) {
410 vsf = append(vsf, v)
411 }
412 }
413 return vsf
414}

Callers 2

StartAPIMethod · 0.85
analyzeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected