package plebeia

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

append friendly segment list

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 -> Segment.side -> t

Append a side to the last segment of t

val append_seg : t -> Segment.segment -> t

Append a segment to the last segment of t

val append_sides : t -> Segment.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.segment list

Get the segment list representation of t

val to_string : t -> string

String representation of t

val of_segments : Segment.segment list -> t

The last segment is appendable

val last : t -> Segment.fat option

The last segment

OCaml

Innovation. Community. Security.