Packages

A Gleam library for comparing strings/lists and producing a textual (styled) representation of the differences.

Current section

Files

Jump to
gap src gap@comparison.erl
Raw

src/gap@comparison.erl

-module(gap@comparison).
-compile([no_auto_import, nowarn_unused_vars]).
-export_type([comparison/1, match/1]).
-type comparison(FII) :: {list_comparison,
list(match(list(FII))),
list(match(list(FII)))} |
{string_comparison,
list(match(list(binary()))),
list(match(list(binary())))}.
-type match(FIJ) :: {match, FIJ} | {no_match, FIJ}.