you really can do everything with map and reduce
base case for permutations function
failing test for the simplest case of permuations
single element sets are easy!
failing test to show we're not doing the right thing
woops, this thing should return a sequence of sequences
make the complex test pass