package testo-diff

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

Parameters

module Item : Comparable

Signature

type item = Item.t

The type of the item that will be compared.

type diff =
  1. | Deleted of item array
  2. | Added of item array
  3. | Equal of item array
    (*

    Represents the change or lack of change in a line or character between the old and new version.

    *)
type t = diff list

List of diffs which is the return value of the main function.

val get_diff : item array -> item array -> t

Returns a list of diffs between two arrays

val recover_input : t -> item array * item array

Recover the original input passed to get_diff.

OCaml

Innovation. Community. Security.