MCPcopy
hub / github.com/syncthing/syncthing / without

Function without

lib/model/model.go:3492–3499  ·  view source on GitHub ↗
(s S, e E)

Source from the content-addressed store, hash-verified

3490}
3491
3492func without[E comparable, S ~[]E](s S, e E) S {
3493 for i, x := range s {
3494 if x == e {
3495 return append(s[:i], s[i+1:]...)
3496 }
3497 }
3498 return s
3499}

Callers 1

ClosedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected