adventofcode/2018/internal/util/math.go

9 lines
75 B
Go

package util
func abs(x int) int {
if x < 0 {
return -x
}
return x
}