Minor
This commit is contained in:
parent
193be1168e
commit
f5fe22c419
1 changed files with 4 additions and 0 deletions
4
nbe.rkt
4
nbe.rkt
|
@ -146,6 +146,10 @@
|
|||
[`(app ,a ,b) (max (scope a) (scope b))]
|
||||
[`(var ,i) (+ i 1)]))
|
||||
|
||||
(: interp-with-scope (-> V Term D))
|
||||
(define (interp-with-scope n a)
|
||||
(interp a (λ (x) (delay (idsub n x)))))
|
||||
|
||||
(: normalize (-> Term Term))
|
||||
(define (normalize a)
|
||||
(let ([sa (scope a)])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue