conundrum

main
Matthew Butterick 6 years ago
parent 25598e662d
commit 10df7a14a5

@ -8,8 +8,7 @@
#'(when debug (report EXPR ...)))]))
(define distance-cache (make-hasheq))
(define/contract (distance q)
(any/c . -> . real?)
(define (distance q)
(hash-ref! distance-cache (cond
[(quad? q)
(hash-ref (send q attrs) 'id q)]

Loading…
Cancel
Save