add as_range to promote an Iterable to a Range