Description: Closure for the interval endpoint function. (Contributed by Mario Carneiro, 16-Mar-2014)