package patience_diff

  1. Overview
  2. Docs

Module Patience_diff.RangeSource

Sourcetype 'a t =
  1. | Same of ('a * 'a) array
  2. | Prev of 'a array
  3. | Next of 'a array
  4. | Replace of 'a array * 'a array
  5. | Unified of 'a array
include Ppx_sexp_conv_lib.Sexpable.S1 with type 'a t := 'a t
Sourceval t_of_sexp : (Sexplib0__.Sexp.t -> 'a) -> Sexplib0__.Sexp.t -> 'a t
Sourceval sexp_of_t : ('a -> Sexplib0__.Sexp.t) -> 'a t -> Sexplib0__.Sexp.t
Sourceval all_same : 'a t list -> bool

all_same ranges returns true if all ranges are Same

Sourceval prev_only : 'a t list -> 'a t list

prev_only ranges drops all Next ranges and converts all Replace ranges to Prev ranges.

Sourceval next_only : 'a t list -> 'a t list

next_only ranges drops all Prev ranges and converts all Replace ranges to Next ranges.

Sourceval prev_size : 'a t -> int

Counts number of elements.

Sourceval next_size : 'a t -> int
Sourcemodule Stable : sig ... end