package ocp-index

  1. Overview
  2. Docs
Lightweight completion and documentation browsing for OCaml libraries

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.1.tar.gz
md5=f5e0bba2b6bbdf5489f313e3c3dcdbec
sha512=82618bef74f00474dc909c01e4ba8f8e235fc420d99a1fe0bf6508745d3f0a75a0b0c25c43e89ae01aa7fb86eae667ff0e0498216881022f900d050541f7a8b5

doc/ocp-index.lib/IndexMisc/index.html

Module IndexMisc

val debug_enabled : bool
val debug : ('a, out_channel, unit) format -> 'a
val timer : unit -> unit -> float
val foldl_next : ('acc -> 'a -> 'a option -> 'acc) -> 'acc -> 'a list -> 'acc

Similar to List.fold_left but with 1 step look-ahead

val string_split : char -> string -> string list
type key = char list
val dot : char
val dots : string
val string_to_key : string -> key

Used to get the keys (or paths) in the trie

val key_to_string : key -> string
val modpath_to_key : ?enddot:bool -> string list -> key
val key_to_modpath : key -> string list
val modpath_to_string : string list -> string
val parent_type : IndexTypes.info -> IndexTypes.info option

Returns the parent type for field records, variants and methods

val unique_subdirs : ?skip:(string -> bool) -> string list -> string list
val project_root : ?path:string -> unit -> string option * string option
val find_build_dir : string -> string option
val make_relative : ?path:string -> string -> string

Shorten file by making it relative to current path (default cwd)

OCaml

Innovation. Community. Security.