Add constant_range and example code.