lesnitsky / 0110011001110000

1 stars 1 forks source link

Temperature-checking function #18

Open DaQuirm opened 4 years ago

DaQuirm commented 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:

t > 90℉ or t > 30℃