Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let schuffle l1 l2 =
- let rec pom li1 li2 out
- match li1 with
- | [] -> []
- | h::t -> (out :: hd li1)
- match li2 with
- | [] -> []
- | h::t -> (out :: hd li2)
- if li1 = [] && li2 = [] then out else pom tl li1 tl li2 out
- in pom(l1 l2 []);;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement