https://github.com/CornellBlockchain/bamboo
Raw File
Tip revision: bd27f8dfdb6f020ab1b24657e8dcb9624604333b authored by Yoichi Hirai on 30 May 2018, 19:14:02 UTC
Merge pull request #291 from iurimatias/master
Tip revision: bd27f8d
wrapOption.ml
#if BSB_BACKEND = "js" then
  include Js.Option
  (* Js.Option.map expects the callback to be uncurried
  https://bucklescript.github.io/bucklescript/api/Js.Option.html#VALmap
  Explanation: https://bucklescript.github.io/docs/en/function.html#curry-uncurry *)
  let map a = Js.Option.map ((fun x  -> a x)[@bs])
#else
  include BatOption
#end
back to top