# NOT RUN {
# permutations of 1,2,3
nPerm( c(1,2,3) );
# permutations of 1,2,1 (two elements are equal)
nPerm( c(1,2,1) );
# permutations of the words "Alice", "Box","Jack"
nPerm( c("Alice", "Box","Jack") );
# permutations of the vectors c(0,1), c(2,3), c(7,3)
nPerm( list(c(0,1), c(2,3), c(7,3)) );
# }
Run the code above in your browser using DataLab