Open DaQuirm opened 4 years ago
Considering the temperature type:
data Temperature = Celsius Double | Fahrenheit Double
write a predicate function (warm) that returns True if a given temperature value is above a certain constant:
warm
True
t > 90℉ or t > 30℃
Considering the temperature type:
write a predicate function (
warm
) that returnsTrue
if a given temperature value is above a certain constant:t > 90℉ or t > 30℃