Skip to content

Commit 32b4696

Browse files
authored
Merge pull request #35 from dvanhorn/next
Next
2 parents 84dc290 + 9a98e01 commit 32b4696

14 files changed

Lines changed: 2051 additions & 2 deletions

File tree

www/notes.scrbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
@include-section{notes/interlude1.scrbl}
1515
@include-section{notes/grift.scrbl}
1616
@include-section{notes/hustle.scrbl}
17+
@include-section{notes/iniquity.scrbl}
1718
@;{
1819
@include-section{notes/5.scrbl}
1920
@include-section{notes/6.scrbl}

www/notes/hustle/interp.rkt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
(and (symbol? x)
4848
(memq x '(add1 sub1 + - zero?
4949
;; New for Hustle
50-
box unbox cons car cdr))))
50+
box unbox empty? cons car cdr))))
5151

5252
;; Any -> Boolean
5353
(define (value? x)
@@ -69,7 +69,8 @@
6969
[(list '- (? integer? i0) (? integer? i1)) (- i0 i1)]
7070
;; New for Hustle
7171
[(list 'box v0) (box v0)]
72-
[(list 'unbox (? box? v0)) (unbox v0)]
72+
[(list 'unbox (? box? v0)) (unbox v0)]
73+
[(list 'empty? v0) (empty? v0)]
7374
[(list 'cons v0 v1) (cons v0 v1)]
7475
[(list 'car (cons v0 v1)) v0]
7576
[(list 'cdr (cons v0 v1)) v1]

0 commit comments

Comments
 (0)