DEV Community

Discussion on: Daily Challenge #75 - Set Alarm

Collapse
 
karthicktamil17 profile image
karthick rajan • Edited

Solved On Purescript

setAlarm :: Boolean -> Boolean -> Boolean
setAlarm employed vacation =
   case (Tuple employed vacation) of
     (Tuple true false) ->
         true

     (Tuple _ _) ->
         false