(i, j int)
| 26 | |
| 27 | func (q queue) Len() int { return len(q) } |
| 28 | func (q queue) Less(i, j int) bool { return q[i].Priority() > q[j].Priority() } |
| 29 | func (q queue) Swap(i, j int) { q[i], q[j] = q[j], q[i] } |
| 30 | |
| 31 | // Push and Pop use pointer receivers because they modify the slice's length, |