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

Method Swap

vm/runtime/sort.go:35–37  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

33}
34
35func (s *Sort) Swap(i, j int) {
36 s.Array[i], s.Array[j] = s.Array[j], s.Array[i]
37}
38
39func (s *Sort) Less(i, j int) bool {
40 a, b := s.Array[i], s.Array[j]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected