cleanup effort pt 1

This commit is contained in:
alexchao26
2020-12-28 22:47:58 -05:00
parent 05ca29c8f2
commit feb7be9152
45 changed files with 434 additions and 3862 deletions
+2 -3
View File
@@ -63,7 +63,7 @@ import (
"fmt"
"strings"
"github.com/alexchao26/advent-of-code-go/mathy"
"github.com/alexchao26/advent-of-code-go/cast"
"github.com/alexchao26/advent-of-code-go/util"
)
@@ -96,8 +96,7 @@ func part2(input string) int {
}
func parseInput(input string) (ans []int) {
lines := strings.Split(input, "\n")
for _, l := range lines {
for _, line := range strings.Split(input, "\n") {
ans = append(ans, cast.ToInt(l))
}
return ans