Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec search (l : int list) (k : int) = match l with
- | [] -> false
- | c::[] -> (c = k)
- | c::b -> if c == k then true else search b k
- ;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement