module Procord_rope:sig..end
type t
val empty : t val is_empty : t -> bool0.val of_string : string -> t val to_string : t -> stringval iter_string_pieces : t -> (string -> int -> int -> unit) -> unit
Usage: iter_string_pieces rope f
Function f is called as f string offset length for each
piece of the rope, left-to-right.
val concat : t -> t -> t
Complexity: O(1).
val sub : t -> int -> int -> t
Usage: sub rope offset length
If offset and length do not designate a valid piece of the rope,
raise Invalid_arg.
Complexity: O(n) where n is the size of the tree (not the length of the
rope, there is no string copying involved).
val length : t -> int
Complexity: O(1).