#!ruby -np eval "[#{$_[2..-1].gsub(/(\d+)-/,'*\1..')}]"
>>1 >>1-3 >>1,3 >>1-3,5,9-10
[1] [1, 2, 3] [1, 3] [1, 2, 3, 5, 9, 10]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!