Advertisement
Guest User

Untitled

a guest
Feb 16th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.20 KB | None | 0 0
  1. let is_divisore y x = x mod y = 0
  2.  
  3. let compito p s =
  4.     let rec aux p_restanti s =
  5.         match (p_restanti,s) with
  6.             ([],_) -> true
  7.         | (x::restx,y::resty) -> is_divisore y x && aux restx s
  8.        
  9.     in aux p s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement