Skip to content

Commit f680dec

Browse files
committed
up
1 parent 96a100c commit f680dec

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/lang/equal/equalInCtx.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ export function equalInCtx(ctx: Ctx, lhs: Value, rhs: Value): boolean {
7474
}
7575

7676
// if (
77-
// equalInCtx(ctx, applyWithDelay(left.target, left.arg), right) ||
78-
// equalInCtx(ctx, left, applyWithDelay(right.target, right.arg)) ||
77+
// equalInCtx(ctx, applyWithDelay(lhs.target, lhs.arg), rhs) ||
78+
// equalInCtx(ctx, lhs, applyWithDelay(rhs.target, rhs.arg)) ||
7979
// equalInCtx(
8080
// ctx,
81-
// applyWithDelay(left.target, left.arg),
82-
// applyWithDelay(right.target, right.arg),
81+
// applyWithDelay(lhs.target, lhs.arg),
82+
// applyWithDelay(rhs.target, rhs.arg),
8383
// )
8484
// ) {
8585
// return true
@@ -97,15 +97,15 @@ export function equalInCtx(ctx: Ctx, lhs: Value, rhs: Value): boolean {
9797
return false
9898
}
9999

100-
function equalNeutralInCtx(ctx: Ctx, left: Neutral, right: Neutral): boolean {
101-
if (left.kind === "Var" && right.kind === "Var") {
102-
return right.name === left.name
100+
function equalNeutralInCtx(ctx: Ctx, lhs: Neutral, rhs: Neutral): boolean {
101+
if (lhs.kind === "Var" && rhs.kind === "Var") {
102+
return rhs.name === lhs.name
103103
}
104104

105-
if (left.kind === "Apply" && right.kind === "Apply") {
105+
if (lhs.kind === "Apply" && rhs.kind === "Apply") {
106106
return (
107-
equalNeutralInCtx(ctx, left.target, right.target) &&
108-
equalInCtx(ctx, left.arg, right.arg)
107+
equalNeutralInCtx(ctx, lhs.target, rhs.target) &&
108+
equalInCtx(ctx, lhs.arg, rhs.arg)
109109
)
110110
}
111111

src/lang/same/sameInCtx.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ export function sameInCtx(ctx: Ctx, lhs: Value, rhs: Value): boolean {
7272
return false
7373
}
7474

75-
function sameNeutralInCtx(ctx: Ctx, left: Neutral, right: Neutral): boolean {
76-
if (left.kind === "Var" && right.kind === "Var") {
77-
return right.name === left.name
75+
function sameNeutralInCtx(ctx: Ctx, lhs: Neutral, rhs: Neutral): boolean {
76+
if (lhs.kind === "Var" && rhs.kind === "Var") {
77+
return rhs.name === lhs.name
7878
}
7979

80-
if (left.kind === "Apply" && right.kind === "Apply") {
80+
if (lhs.kind === "Apply" && rhs.kind === "Apply") {
8181
return (
82-
sameNeutralInCtx(ctx, left.target, right.target) &&
83-
sameInCtx(ctx, left.arg, right.arg)
82+
sameNeutralInCtx(ctx, lhs.target, rhs.target) &&
83+
sameInCtx(ctx, lhs.arg, rhs.arg)
8484
)
8585
}
8686

0 commit comments

Comments
 (0)