Created
October 19, 2012 07:34
-
-
Save benorama/3916746 to your computer and use it in GitHub Desktop.
Code War at CFCamp - Groovy version (97 bytes) - http://aurelien.deleusiere.fr/post.cfm/code-war-at-cfcamp
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
"6-9,12,14-19".tokenize(',').collect{it.find('-')?[*evaluate(it.replace('-','..'))]:it}.flatten() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment