From 00413621f7df13ce45558018f36f318be27896bf Mon Sep 17 00:00:00 2001 From: pingu Date: Tue, 25 Nov 2025 19:51:42 +0100 Subject: [PATCH] Baaa Hm? Huh? --- 3or4/Interpreter/Self.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/3or4/Interpreter/Self.hs b/3or4/Interpreter/Self.hs index b09ea02..ac94d07 100644 --- a/3or4/Interpreter/Self.hs +++ b/3or4/Interpreter/Self.hs @@ -67,10 +67,9 @@ lookupExp = subst (Variable "if") ifExp . subst (Variable "equal") equalExp $ parse "\\c. rec lookup = \\xs. case xs of \ - \ -- TODO: Fix for Nil() \ \ { Cons(b,bs) -> \ \ case b of \ - \ { Branch(c', bs, e') -> if (equal c c') Pair(bs,e') (lookup bs) } \ + \ { Branch(c', xs, e') -> if (equal c c') Pair(xs,e') (lookup bs) } \ \ }" substsExp :: Exp