Advertisement
Guest User

error

a guest
Sep 26th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. let rec fold f a xs = match xs with
  2. | [] -> a
  3. | x :: xt -> fold f (f a x) xt
  4.  
  5. let get_right pivot lst =
  6. let myright acc h =
  7. if h = pivot then
  8. []
  9. else
  10. acc::h
  11. in
  12. fold (myright) [] lst
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement