Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
easy solution in Clear category for Expand Intervals by BumKlatsch
from typing import Iterable
def expand_intervals(items: Iterable) -> Iterable:
return list(set(list(n for interval in items for n in range(interval[0], interval[1] + 1))))
Oct. 28, 2020