pub fn max( error: a, max: Int, ) -> fn(Int) -> Result(Int, tuple(a, List(a)))
pub fn min( error: a, min: Int, ) -> fn(Int) -> Result(Int, tuple(a, List(a)))