Skip to content

Commit

Permalink
slide/down FarthestPoint changed the optional param back to or undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
syhol committed Jan 3, 2024
1 parent da21e49 commit 8aedb7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assert/_diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ export function diff<T>(A: T[], B: T[]): Array<DiffResult<T>> {
}

function createFP(
slide?: FarthestPoint,
down?: FarthestPoint,
slide: FarthestPoint | undefined,
down: FarthestPoint | undefined,
k: number,
M: number,
): FarthestPoint {
Expand Down Expand Up @@ -189,8 +189,8 @@ export function diff<T>(A: T[], B: T[]): Array<DiffResult<T>> {

function snake<T>(
k: number,
slide?: FarthestPoint,
down?: FarthestPoint,
slide: FarthestPoint | undefined,
down: FarthestPoint | undefined,
_offset: number,
A: T[],
B: T[],
Expand Down

0 comments on commit 8aedb7c

Please sign in to comment.