package plotly

  1. Overview
  2. Docs

Source file option.ml

1
2
3
4
5
6
7
8
9
include Stdlib.Option
let (let*) = bind
let (let+) x f = map f x
let rec mapM' acc f = function
  | [] -> Some (List.rev acc)
  | x::xs ->
      let* x = f x in
      mapM' (x::acc) f xs
let mapM f = mapM' [] f
OCaml

Innovation. Community. Security.