-
-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
Description
What version of Racket are you using?
8.10
What program did you run?
Images are an important type in the HTDP methodology. If the new signatures are supposed to be usable for teaching, a pre-defined type for images should be available.
(: foo Image)
(define foo (circle 5 "solid" "red"))
One can work around the issue using the predicate
facility in signatures, but this does not work in BSL because it uses image?
as a higher-order funciton.
(: foo (predicate image?))
(define foo (circle 5 "solid" "red"))