Functional Programming (H) - 6.07 - We Love Lambda!

1. What is the result of evaluation of the following expression?

(\x y -> x*x-y*y) 3 4

2. What is the result of evaluating the following expression?

map (\x -> length x) ["This","is", "a","test"]

3. What is the result of evaluating the following expression?

(\x -> (\y -> y x)) "x" (\y -> y)

4. What is the result of evaluating the following expression?

(\x -> (\y -> x y)) "x"

5. What is the result of evaluating the following expression?

(\x f -> f x) 4 (\x -> x*x)

6. What is the result of evaluating the following expression?

(\x -> 1) 2