MCPcopy Create free account
hub / github.com/google/gapid / Search

Function Search

core/math/interval/list.go:94–96  ·  view source on GitHub ↗

Search finds the first interval in the list that the supplied predicate returns true for. If no interval matches the predicate, it returns the length of the list.

(l List, t Predicate)

Source from the content-addressed store, hash-verified

92// Search finds the first interval in the list that the supplied predicate returns
93// true for. If no interval matches the predicate, it returns the length of the list.
94func Search(l List, t Predicate) int {
95 return search(l, t)
96}

Callers 1

UpdateFunction · 0.85

Calls 1

searchFunction · 0.85

Tested by

no test coverage detected