Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.31 KB | None | 0 0
  1. let rec remove_contact (a,b,c,d) agenda =
  2. match agenda with
  3.     [] -> []
  4.     |(a1,b1,c1,d1)::l -> if string_lowercase a1 > string_lowercase a
  5.                         then
  6.                             remove_contact (a,b,c,d) l
  7.                         else if string_lowercase a1 < string_lowercase a
  8.                             then
  9.                                 (a1,b1,c1,d1)::l
  10.                             else
  11.                                 l;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement