package testo-diff

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

Module type Testo_diff.SSource

Sourcetype item

The type of the item that will be compared.

Sourcetype 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.

    *)
Sourcetype t = diff list

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

Sourceval get_diff : item array -> item array -> t

Returns a list of diffs between two arrays

Sourceval recover_input : t -> item array * item array

Recover the original input passed to get_diff.

OCaml

Innovation. Community. Security.