// Chapter 25 example: package mathhelpers. package mathhelpers func clamp(x int, lo int, hi int) int { if x < lo { return lo } if x > hi { return hi } return x } func Double(x int) int { return clamp(x*2, -100, 100) }