mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
a slight optimization in eta expand
This commit is contained in:
@@ -164,7 +164,11 @@ partEval opts gr (context, val) trm = errIn ("parteval" +++ prt_ trm) $ do
|
|||||||
|
|
||||||
comp g t = {- refreshTerm t >>= -} computeTerm gr g t
|
comp g t = {- refreshTerm t >>= -} computeTerm gr g t
|
||||||
|
|
||||||
etaExpand su t = comp su t >>= recordExpand val >>= comp su
|
etaExpand su t = do
|
||||||
|
t' <- comp su t
|
||||||
|
case t' of
|
||||||
|
R _ -> comp su t' --- return t' wo noexpand...
|
||||||
|
_ -> recordExpand val t' >>= comp su
|
||||||
|
|
||||||
outCase subst t = do
|
outCase subst t = do
|
||||||
pts <- getParams context
|
pts <- getParams context
|
||||||
|
|||||||
Reference in New Issue
Block a user