@@ -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
0 commit comments