package irmin-pack

  1. Overview
  2. Docs
Irmin backend which stores values in a pack file

Install

Dune Dependency

Authors

Maintainers

Sources

irmin-2.5.2.tbz
sha256=ac8d75144cafdaf4b5e106b540a27338245510b7e33a8c412d393c9d50cae490
sha512=6108448c73d23648bc4fb27722f21a007990e7ed4739cc08f920a140033805fb87c6fe3935e466dfe264ea0bb01e18da571d42f5624d84979a4fea9aee4a1d19

doc/irmin-pack.layered/Irmin_pack_layered/Make/Key/index.html

Module Make.Key

Key provides base functions for the stores's paths.

Path

type t = key

The type for path values.

type step = step

Type type for path's steps.

val empty : t

The empty path.

val v : step list -> t

Create a path from a list of steps.

val is_empty : t -> bool

Check if the path is empty.

val cons : step -> t -> t

Prepend a step to the path.

val rcons : t -> step -> t

Append a step to the path.

val decons : t -> (step * t) option

Deconstruct the first element of the path. Return None if the path is empty.

val rdecons : t -> (t * step) option

Deconstruct the last element of the path. Return None if the path is empty.

val map : t -> (step -> 'a) -> 'a list

map t f maps f over all steps of t.

Value Types

val t : t Irmin__.Type.t

t is the value type for t.

val step_t : step Irmin__.Type.t

step_t is the value type for step.

OCaml

Innovation. Community. Security.