Public
Authored by Auke L. Klazema

seq to ranges and ranges to seq

My version of the problem given to us by Sander ter Veen on our Slack.

How to convert sequence of numbers to ranges. Ex. "1,2,5,6,7,8,11" -> "1-2,5-8,11". And the other way around.

2.81 KB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment