MCPcopy
hub / github.com/dgraph-io/dgraph / Min

Function Min

x/x.go:612–617  ·  view source on GitHub ↗

Min returns the minimum of the two given numbers.

(a, b uint64)

Source from the content-addressed store, hash-verified

610
611// Min returns the minimum of the two given numbers.
612func Min(a, b uint64) uint64 {
613 if a < b {
614 return a
615 }
616 return b
617}
618
619// Max returns the maximum of the two given numbers.
620func Max(a, b uint64) uint64 {

Callers 4

sortWithIndexFunction · 0.92
getTsMethod · 0.92
proposeSnapshotMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected