Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
yield from range solution in Clear category for Expand Intervals by flpo
from typing import Iterable
def expand_intervals(items: Iterable) -> Iterable:
for i, j in items: yield from range(i, j + 1)
Dec. 13, 2018