package zed

  1. Overview
  2. Docs

This module is similar of the Buffer module of the standard library except that it works with rope.

type t

Type of rope buffers.

val create : unit -> t

Create a new empty buffer.

val add : t -> CamomileLibrary.UChar.t -> unit

add buffer x add x at the end of buffer.

val contents : t -> rope

contents buffer returns the contents of buffer as a rope.

val reset : t -> unit

reset buffer resets buffer to its initial state.

OCaml

Innovation. Community. Security.