package rangeSet

  1. Overview
  2. Docs

Source file utils.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(*
 * utils.ml
 * -----------
 * Copyright : (c) 2018 - 2023, ZAN DoYe <zandoye@gmail.com>
 * Licence   : MIT
 *
 * This file is a part of rangeSet.
 *)


(* compatible with ocaml 4.02 *)
let option_get opt=
  match opt with
  | Some v-> v
  | None-> invalid_arg "option is None"
OCaml

Innovation. Community. Security.