14 lines
188 B
Go
14 lines
188 B
Go
package d6
|
|
|
|
import "strconv"
|
|
|
|
func toNum(in []string) []int {
|
|
nums := make([]int, len(in))
|
|
|
|
for idx, str := range in {
|
|
num, _ := strconv.Atoi(str)
|
|
nums[idx] = num
|
|
}
|
|
|
|
return nums
|
|
}
|