rvecs

package
v0.0.0-...-f3070e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package rvecs contains functions to work with the result vectors, the internal representation that's used by the myers algorithm and is then translated to a user facing API. The internal representation is separate from the exported representation because it needs to solve a number of different problems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hunks

func Hunks(rx, ry []bool, cfg config.Config) iter.Seq[Hunk]

func Make

func Make[T any](x, y []T) (rx, ry []bool)

Types

type Hunk

type Hunk struct {
	S0, S1 int // Start and end of the hunk in x.
	T0, T1 int // Start and end of the hunk in y.
	Edits  int // Number of edits in this hunk.
}

Hunk describes a sequence of consecutive edits.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL