streams-as-permutations