From: Bill Kelly Date: 2009-05-18T15:01:01+09:00 Subject: Re: permute each element of a ragged array? From: "Phlip" > > Here's a programming chestnut. I suppose I could brute-force my way through > this, but I'm curious if anyone knows a slick or clever way to do it. > > We are talking about returning an array of arrays, each containing each > permutation of the elements in the input array of arrays, including no element: Oddly, I stumbled upon the Logo version of this just yesterday: http://www.eecs.berkeley.edu/~bh/logo-sample.html :) Clearly a recursive solution... pretty compact though... Regards, Bill