Array of indexes to array of ranges

前端 未结 7 966
执念已碎
执念已碎 2020-12-09 12:46

Ranges in ruby are pretty cool. I end up with arrays such as this:

geneRanges = [(234..25), (500..510), (1640..1653)]

And subsequently ha

7条回答
  •  孤街浪徒
    2020-12-09 12:57

    I've never seen anything in the Ruby language that does that, but here is some code that might help you do it yourself:

    http://snippets.dzone.com/posts/show/4677

提交回复
热议问题