MCPcopy Create free account
hub / github.com/expr-lang/expr / clearSlice

Function clearSlice

checker/checker.go:176–181  ·  view source on GitHub ↗
(s S)

Source from the content-addressed store, hash-verified

174}
175
176func clearSlice[S ~[]E, E any](s S) {
177 var zero E
178 for i := range s {
179 s[i] = zero
180 }
181}
182
183func (v *Checker) visit(node ast.Node) Nature {
184 var nt Nature

Callers 1

resetMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…