We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5280a76 commit 9140e39Copy full SHA for 9140e39
www/notes/diagrams.rkt
@@ -22,6 +22,11 @@
22
(cb-superimpose (rectangle n n)
23
(code box)))
24
25
+(define (make-vect-cell)
26
+ (cb-superimpose (rectangle n n)
27
+ (code vect)))
28
+
29
30
31
(define (fwd-pts-to a b p)
32
(pin-arrow-line 7 p
@@ -66,13 +71,14 @@
66
71
(match v
67
72
[`(cons ,_) (make-cons-cell)]
68
73
[`(box ,_) (make-box-cell)]
74
+ [`(vect ,_) (make-vect-cell)]
69
75
[_ (make-imm-cell v)]))
70
76
77
(define (add-arrows spec cells p)
78
;(printf "~a~n" spec)
79
(match spec
80
['() p]
- [(cons `(cons ,i) s)
81
+ [(cons `(_ ,i) s)
82
(add-arrows s
83
cells
84
(fwd-pts-to (list-ref cells (sub1 (- (length cells) (length s))))
0 commit comments