Skip to content

Instantly share code, notes, and snippets.

@benorama
Created October 19, 2012 07:34
Show Gist options
  • Save benorama/3916746 to your computer and use it in GitHub Desktop.
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
"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