Directions: Match each Example on the left with the Contract on the right. NOTE: Multiple examples may match to the same contract!
-
(EXAMPLE (match 30) (star (* 30 2) "outline" "purple")); match : Number Number -> Number
-
(EXAMPLE (match 24) (star (* 24 2) "outline" "purple")); match : Number -> String
-
(EXAMPLE (match (triangle 20 "outline" "brown") 3) (* 3 (image-height (triangle 20 "outline" "brown")))); match : String String -> Image
-
(EXAMPLE (match (circle 10 "solid" "silver") 16) (* 16 (image-height (circle 10 "solid" "silver")))); match : Number -> Image
-
(EXAMPLE (match "triangle" "blue") (triangle 40 "outline" "blue")); match : Image Number -> Number
-
(EXAMPLE (match (string-length "coffee") (string-length "tea")) (+ 6 3))
-
(EXAMPLE (match (string-length "tabletop")) "8")
-
(EXAMPLE (match 1.50) "greater than 1")
These materials were developed partly through support of the National Science Foundation,
(awards 1042210, 1535276, 1648684, and 1738598).
BS:Games by Jen Poole, Emmanuel Schanzer, Ed Campos Jr, and Dorai Sitaram
is licensed under a
Creative Commons 4.0 Unported License.
Based on a work at www.BootstrapWorld.org.
Permissions beyond the scope of this license may be available by contacting
schanzer@BootstrapWorld.org.