Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.14 KB | None | 0 0
  1. let rec first_match f1 f2 = function
  2.     [] -> raise (Failure "first_match: none")
  3.     | h::t -> if f1 h = f2 h then h else first_match f1 f2 t
  4. ;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement