Replace !
with debug assertion in Permutations
#917
Merged
!
with debug assertion in Permutations
#917