Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. let schuffle l1 l2 =
  2. let rec pom li1 li2 out
  3.  
  4.  
  5. match li1 with
  6. | [] -> []
  7. | h::t -> (out :: hd li1)
  8. match li2 with
  9. | [] -> []
  10. | h::t -> (out :: hd li2)
  11.  
  12. if li1 = [] && li2 = [] then out else pom tl li1 tl li2 out
  13. in pom(l1 l2 []);;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement