loading...

re: Daily Challenge #75 - Set Alarm VIEW POST

FULL DISCUSSION
 

Here is in Unison

use base

setalarm : Boolean -> Boolean -> Boolean

setalarm employed vacation = case (employed, vacation) of
(true, false) -> true
_ -> false

setalarm true true
setalarm false true
setalarm false false
setalarm true false

code of conduct - report abuse