def draftSlots = [1, 2, 3] def permutation = [] draftSlots.eachPermutation { permutation << it } println permutation