Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec fold f a xs = match xs with
- | [] -> a
- | x :: xt -> fold f (f a x) xt
- let get_right pivot lst =
- let myright acc h =
- if h = pivot then
- []
- else
- acc::h
- in
- fold (myright) [] lst
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement