Documented expression-based permutation