MCPcopy
hub / github.com/greyireland/algorithm-pattern / swap

Function swap

src/sort/heap_sort.go:45–47  ·  view source on GitHub ↗
(a []int, i, j int)

Source from the content-addressed store, hash-verified

43 }
44}
45func swap(a []int, i, j int) {
46 a[i], a[j] = a[j], a[i]
47}

Callers 2

HeapSortFunction · 0.85
sinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected