Referenced from lesson Applying Functions
Match the contract (left) with the expression described by the function being used (right).
Contract | Expression | |||
---|---|---|---|---|
is-capital :: (city :: String, state :: String) -> Boolean |
1 |
A |
|
|
show-score :: (team1 :: String, team2 :: String) -> Number |
2 |
B |
|
|
is-capital :: (city :: String, pop :: Number) -> Boolean |
3 |
C |
|
|
show-score :: (team :: String, score :: Number) -> Image |
4 |
D |
|
|
is-capital :: (city :: String) -> Boolean |
5 |
E |
|
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). Bootstrap:Integrated Oklahoma by Jen Poole 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.