MCPcopy Create free account
hub / github.com/encodeous/nylon / MakeSortedPair

Function MakeSortedPair

state/config.go:326–332  ·  view source on GitHub ↗
(a, b T)

Source from the content-addressed store, hash-verified

324}
325
326func MakeSortedPair[T cmp.Ordered](a, b T) Pair[T, T] {
327 if a < b {
328 return Pair[T, T]{a, b}
329 } else {
330 return Pair[T, T]{b, a}
331 }
332}
333
334func (e *CentralCfg) GetPeers(curId NodeId) []NodeId {
335 allNodes := make([]string, 0)

Callers 1

ParseGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected