Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec insere e = function
- |[] -> [[]]
- |t :: q -> map ((::) t) (insere e q)
- ;;
- let rec perm = function
- |[] -> [[]]
- |t :: q -> List.fold_left (@) (insere t (perm q))
- ;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement