Advertisement
Guest User

Untitled

a guest
Jan 31st, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. let rec assoc (d,k,l) =
  2. let rec helper (str, currList) =
  3. match currList with
  4. [] -> d
  5. | h::t ->
  6. match h with
  7. (x,y) -> if (x = k) then y
  8. else helper (k, t)
  9. in
  10. helper (k, l);;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement