Skip to content

Instantly share code, notes, and snippets.

@nobeans
Forked from kyonmm/StringListMultiply
Created September 12, 2011 07:09
Show Gist options
  • Save nobeans/1210730 to your computer and use it in GitHub Desktop.
Save nobeans/1210730 to your computer and use it in GitHub Desktop.
文字列リストを辞書的に網羅する。
def l = ["", *"A".."Z"]
def combinations = [l, l].combinations().collect{ it.join() }.unique() - ''
combinations.each {
println it
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment