Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec drugimax l drugi =
- ( match l with
- | [x] -> if(maxel l > x && drugi < x) then x else drugi
- | h::t -> if(maxel l > h && drugi < h) then drugimax t h else drugimax t drugi
- );;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement