!changed mathutil package to mathy, removed int/string casting from mathy

This commit is contained in:
alexchao26
2020-12-27 17:21:33 -05:00
parent 57fff6d829
commit 666518f507
114 changed files with 780 additions and 287 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/alexchao26/advent-of-code-go/mathutil"
"github.com/alexchao26/advent-of-code-go/cast"
"github.com/alexchao26/advent-of-code-go/util"
)
@@ -101,7 +101,7 @@ func reverse(nums []int, left, right int) []int {
func parseInput(input string) (ans []int) {
nums := strings.Split(input, ",")
for _, num := range nums {
ans = append(ans, mathutil.StrToInt(num))
ans = append(ans, cast.ToInt(num))
}
return ans
}