MCPcopy
hub / github.com/ashleymcnamara/gophers / Swap

Method Swap

scripts/collage/collage.go:35–35  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

33
34func (xs Items) Len() int { return len(xs) }
35func (xs Items) Swap(i, j int) { xs[i], xs[j] = xs[j], xs[i] }
36func (xs Items) Less(i, j int) bool { return xs[i].Name < xs[j].Name }
37
38func main() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected