MCPcopy Index your code
hub / github.com/coder/coder / Descending

Function Descending

coderd/util/slice/slice.go:186–188  ·  view source on GitHub ↗
(a, b T)

Source from the content-addressed store, hash-verified

184}
185
186func Descending[T constraints.Ordered](a, b T) int {
187 return -Ascending[T](a, b)
188}
189
190// SymmetricDifference returns the elements that need to be added and removed
191// to get from set 'a' to set 'b'. Note that duplicates are ignored in sets.

Callers 2

TestDescendingFunction · 0.92
CreateMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestDescendingFunction · 0.74