Advertisement
Guest User

Untitled

a guest
Oct 11th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. let bigint_times list1 list2 =
  2. let rec f list1_rec list2_rec puissance =
  3. match (list1_rec,list2_rec) with
  4. ([],[])->[]
  5. | ([],_)|(_,[])->[]
  6. | (e1::l1,l2)->
  7. bigint_sum(bigint_mult l2 (e1*puissance))(f l1 l2 (puissance*10))
  8. in f list1 list2 1;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement