char mins done; need to shuffle some error condition checks before

This commit is contained in:
2022-03-04 01:04:14 -05:00
parent 77d5271b5a
commit 1c0481824e
9 changed files with 215 additions and 16 deletions

View File

@@ -82,11 +82,7 @@ func (c *CharSet) String() (s string) {
// Swap will swap the position of the item at index i and the item at index j in a CharSet (needed for sort.Interface).
func (c *CharSet) Swap(i, j int) {
var iVal Char = (*c)[i]
var jVal Char = (*c)[j]
(*c)[i] = jVal
(*c)[j] = iVal
(*c)[j], (*c)[i] = (*c)[i], (*c)[j]
return
}