Advertisement
Guest User

Untitled

a guest
Feb 13th, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.41 KB | None | 0 0
  1.   let pack_by_button pack_function button_text (entry : Entry.t) input_tuples =
  2.     let open Html.D in
  3.     let buys = Product_Match.buys entry.data in
  4.     let sells = Product_Match.sells entry.data in
  5.     ignore [%client
  6.       (
  7.         (Lwt.async @@ fun () ->
  8.          let suggestions = ~%pack_function ~%sells ~%buys ~%input_tuples in
  9.          Lwt_list.iter_p set_suggested suggestions
  10.         ):unit)
  11.     ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement