plebeia

Functional storage using Merkle Patricia tree
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library plebeia
Module Plebeia . Segment . Segs
type t
val empty : t

The empty list of segments []

val empty' : t

A singleton of the empty segment: [Segment.empty]. Do not confuse with the empty list of segments [].

val add_side : t -> side -> t

Append a side to the last segment of t

val append_seg : t -> segment -> t

Append a segment to the last segment of t

val append_sides : t -> side list -> t

Append a list of sides to the last segment of t

val push_bud : t -> t

Finalize the current last segment of t then append an empty semgent at the last of it

val to_segments : t -> segment list

Get the segment list representation of t

val to_string : t -> string

String representation of t

val of_segments : segment list -> t

The last segment is appendable

val last : t -> fat option

The last segment