Groovy web console

subscribe to the feed Subscribe
to this
site

smada can do it

Published 4 months ago by smada with tags fantasy baseball draft order
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def draftSlots = [1, 2, 3]
 
def permutation = []
draftSlots.eachPermutation {
    permutation << it
}

println permutation