diffmove

package module
v0.0.0-...-d168423 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Insert

func Insert(slice []int, index, value int) []int

Insert inserts a value into a slice

func Remove

func Remove(slice []int, index int) []int

Remove removes a value from a slice

Types

type Move

type Move struct {
	Move        string
	StartPrior  int
	Start       int
	StartFollow int
	EndPrior    int
	End         int
	EndFollow   int
	Value       int
}

Move An addition, removal or move in an array

func Diff

func Diff(start []int, end []int) []Move

Diff transforms the diff between two lists into a series of moves

Jump to

Keyboard shortcuts

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