(nsdailyChallenge.seventyFive)(defn-setAlarm[&{:keys[employed?vacation?]}]"A vacation is what you take when you can no longer take what you've
been taking - Wise Man #42"(cond(andemployed?vacation?)false(andemployed?(notvacation?))true))
don't test me 😗
(deftestsunrise_mutha_fcka(is(=true(setAlarm:employed?true:vacation?false))(is(=false(and(setAlarm:employed?false:vacation?false)(setAlarm:employed?true:vacation?true)(setAlarm:employed?false:vacation?true)))));;i don't know if you can be unemployed and temporarily away ;;from work | in fact, you can't. 🤔🤔🤔(run-tests'dailyChallenge.seventyFive)
at least with named non-positional parameters . . .
. . . there's less confusion about how silly this is 😂
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
crackin' out the ol' Clojure 🤔
don'ttest me 😗at least with named non-positional parameters . . .
. . . there's less confusion about how silly this is 😂