Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
simple yield solution in Clear category for Expand Intervals by oduvan
from typing import Iterable
def expand_intervals(items: Iterable) -> Iterable:
for item in items:
for i in range(item[0], item[1] + 1):
yield i
Dec. 11, 2018
Comments: