Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec assoc (d,k,l) =
- let rec helper (str, currList) =
- match currList with
- [] -> d
- | h::t ->
- match h with
- (x,y) -> if (x = k) then y
- else helper (k, t)
- in
- helper (k, l);;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement