package lsp

  1. Overview
  2. Docs
LSP protocol implementation in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

jsonrpc-1.2.0.tbz
sha256=e4e56590b9af02160e5af7733763897d7cfe3f9b876692af4d4184ab0fce4bcb
sha512=724d5190a678ca8a3f3c13915cbfcf8d3cce8efa43e0dde130b14c45065b6ccd22507951e79977bcecf361c7928f271d312b87642bb2c52f33669c3e952a7e1b

doc/lsp.stdune/Stdune/Univ_map/index.html

Module Stdune.Univ_map

Universal maps

type t

A universal map is a map that can store values for arbitrary keys. It is the the key that conveys the type of the data associated to it.

module Key : sig ... end
val empty : t
val is_empty : t -> bool
val mem : t -> 'a Key.t -> bool
val set : t -> 'a Key.t -> 'a -> t
val add : t -> 'a Key.t -> 'a -> (t, 'a) Result.t
val update : t -> 'a Key.t -> f:('a option -> 'a option) -> t
val remove : t -> 'a Key.t -> t
val find : t -> 'a Key.t -> 'a option
val find_exn : t -> 'a Key.t -> 'a
val singleton : 'a Key.t -> 'a -> t
val superpose : t -> t -> t

superpose a b is b augmented with bindings of a that are not in b.

val to_dyn : t -> Dyn.t
OCaml

Innovation. Community. Security.