aboutsummaryrefslogtreecommitdiff
path: root/lib.rkt
diff options
context:
space:
mode:
authorJJ2024-06-29 04:31:17 +0000
committerJJ2024-06-29 07:12:06 +0000
commit67e7d598200047ab5ee8bddd511cac5f52f0c215 (patch)
tree24955ba6cc509a087342691f0b051d2736268c03 /lib.rkt
parent30b0c93ce37971450c7ad52bc49ca242d18502fc (diff)
stlc-dll: add back check cases, inline and fix replace, implement well-formed
Diffstat (limited to 'lib.rkt')
-rw-r--r--lib.rkt5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib.rkt b/lib.rkt
index 6d431fd..29d3b83 100644
--- a/lib.rkt
+++ b/lib.rkt
@@ -154,8 +154,3 @@
(check-equal? '(λ a (λ b (λ c (a (b c)))))
(α-convert '(λ c (λ a (λ b (c (a b)))))))
-(define (replace expr key value)
- (match expr
- [x #:when (equal? x key) value]
- [`(,e ...) `(,@(map (λ (x) (replace x key value)) e))]
- [v v]))