Question: Problem 7 (Calculation with Lambda Expressions). For each of the following, write a lambda expression to calculate the function. You can use any of the

Problem 7 (Calculation with Lambda Expressions). For each of the following, write a lambda expression to calculate the function. You can use any of the functions I covered in class or in the slides, but you should not use recursion for any of the functions. For all questions the functions are for numbers represented as Church numerals. a. XOR = ( a. Ab. ) should calculate a b b. power-(An. Am. ) should calculate nm c. factorial (an... should calculate n! (HINT: you can use pair, fst and snd as we did for the prd function)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
