Task 2 of 5 · 0 solved · 5 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

11.5 Stream pipelines — distinct and sorted

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Fill in tidy so that it returns a list holding each value once, in increasing order.

The program prints [1, 3, 5, 9] and []. One chain is enough — no loops.

Your solution