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