Create Intervals (generator version) Create Intervals (generator version)
English RU

From a set of ints you have to create a list of closed intervals as tuples, so the intervals are covering all the values found in the set.
In this mission you should use the 'yield' to make your function a generator.

A closed interval includes its endpoints! The interval 1..5 , for example, includes each value x that satifies the condition 1 <= x <= 5 .

Values can only be in the same interval...
A single value, that does not fit into an existing interval becomes the start- and endpoint of a new interval.

You should be an authorized user in order to see the full description and start solving this mission.