package octez-internal-libs

  1. Overview
  2. Docs
A package that contains some libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-internal-libs.irmin/Irmin/Path/String_list/index.html

Module Path.String_listSource

An implementation of paths as string lists.

Path

Sourcetype t = string list

The type for path values.

Sourcetype step = string

Type type for path's steps.

Sourceval empty : t

The empty path.

Sourceval v : step list -> t

Create a path from a list of steps.

Sourceval is_empty : t -> bool

Check if the path is empty.

Sourceval cons : step -> t -> t

Prepend a step to the path.

Sourceval rcons : t -> step -> t

Append a step to the path.

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

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

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

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

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

map t f maps f over all steps of t.

Value Types

Sourceval t : t Type.t

t is the value type for t.

Sourceval step_t : step Type.t

step_t is the value type for step.

OCaml

Innovation. Community. Security.