(index []uint32, n uint32)
| 163 | } |
| 164 | |
| 165 | func ReverseIndex(index []uint32, n uint32) []uint32 { |
| 166 | var reverse []uint32 |
| 167 | for i := range n { |
| 168 | if len(index) > 0 && index[0] == i { |
| 169 | index = index[1:] |
| 170 | continue |
| 171 | } |
| 172 | reverse = append(reverse, i) |
| 173 | } |
| 174 | return reverse |
| 175 | } |
no outgoing calls
no test coverage detected