package plebeia

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Plebeia.UtilsSource

Sourcemodule Exn : sig ... end
Sourcemodule Format : sig ... end
Sourcemodule String : sig ... end
Sourcemodule List : sig ... end
Sourcemodule Array : sig ... end
Sourcemodule Open : sig ... end
include module type of Open
Sourceval from_Some : 'a option -> 'a
Sourceval from_Ok : ('a, 'b) result -> 'a
Sourceval from_Ok_lwt : ('a, 'b) result Lwt.t -> 'a Lwt.t
Sourceval to_file : file:string -> string -> unit

Create a file with the given string

Sourceval (^/) : string -> string -> string

Filename.concat

Sourceval with_time : (unit -> 'a) -> 'a * Mtime.span

Time the function in seconds

Sourceval with_time_lwt : (unit -> 'a Lwt.t) -> ('a * Mtime.span) Lwt.t

with_time for lwt

Sourceval failwithf : ('a, Format.formatter, unit, 'b) format4 -> 'a

failwith with printf interface

Sourceval (@) : 'a list -> 'a list -> 'a list

Tail recursive list concat

Sourceval reachable_words : 'a -> int

Return the words occupied by the object. Only for debugging. This costs a lot

Sourceval reachable_mbs : 'a -> float
Sourceval min : 'a -> 'a -> 'a
  • deprecated Use monomorphic min, or use Stdlib.min
Sourceval max : 'a -> 'a -> 'a
  • deprecated Use monomorphic max, or use Stdlib.max
Sourcemodule Int : sig ... end
OCaml

Innovation. Community. Security.