Given the following encoding for the boolean values true and false write a conditional (if or cond) function that returns its second or third argument depending on whether the condition (the first argument, a Church-encoded boolean value) is true or false respectively.
Given the following encoding for the boolean values
true
andfalse
write a conditional (if
orcond
) function that returns its second or third argument depending on whether the condition (the first argument, a Church-encoded boolean value) is true or false respectively.true x y = x
false x y = y