Last active
August 29, 2015 14:07
-
-
Save DaveTD/4c6c2775842d158fd685 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
output = Array.new | |
[1..3,5,2,1,6,3,4,6,777,13..17].map{ |i| | |
begin | |
output << i.to_a | |
rescue | |
output << i | |
end | |
} | |
puts output.flatten |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment