Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec add (client,acompte1) liste =
- match liste with
- [] -> (client,acompte1) :: []
- | (nom,acompte2)::list when client = nom -> failwith "ce compte existe deja"
- | (nom,acompte2)::list when client > nom -> add (client,acompte1) list
- | (nom,acompte2)::list -> (client,acompte1)::(nom,acompte2)::list;;
Add Comment
Please, Sign In to add comment