package oui

  1. Overview
  2. Docs
A tool that builds standalone installers for your OCaml applications

Install

dune-project
 Dependency

Authors

Maintainers

Sources

oui-0.1.0.tbz
sha256=b806a63c9acd581a00729a48f1faf86b294cc82936fc705fc628a20ede33f977
sha512=e61c35a6e08671634c1edabd7b0add926ac6e0c6c43c9e0a095e89efab7696b6ae5cc1ea0844283a80640c19adb36478bdfb2414bbcab5077ceb7fd16ae45e66

doc/src/oui.lib/compat.ml.html

Source file compat.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(* Thin stdlib compat layer until stdcompat catches up with the latest compiler.
*)

module List = struct
  include Stdlib.List

  let find_mapi f =
    let rec aux i = function
      | [] -> None
      | x :: l ->
        begin match f i x with
          | Some _ as result -> result
          | None -> aux (i+1) l
        end in
    aux 0
end