println version of permutations
use of :when in the "for" macro