main
Matthew Butterick 8 years ago
parent 6aee273209
commit bfed86d26c

@ -7,16 +7,16 @@
(for ([(val i) (in-indexed vals)])
(hash-ref! results i (λ ()
(report* results i)
(let/cc pointer-k
(let ([v (cond
[(pair? val) (hash-set! pointer-ks (car val) pointer-k) (car val)]
[else val])])
(define pointer (hash-ref pointer-ks v #f))
(cond
[pointer (hash-remove! pointer-ks v)
(pointer (format "~a xref" v))]
[else v]))))))
(report* results i)
(let/cc pointer-k
(let ([v (cond
[(pair? val) (hash-set! pointer-ks (car val) pointer-k) (car val)]
[else val])])
(define pointer (hash-ref pointer-ks v #f))
(cond
[pointer (hash-remove! pointer-ks v)
(pointer (format "~a xref" v))]
[else v]))))))
(for/list ([i (in-range (length (hash-keys results)))])
(hash-ref results i))
Loading…
Cancel
Save