10.07.2015 Views

An Introduction to Functional Programming Through Lambda Calculus

An Introduction to Functional Programming Through Lambda Calculus

An Introduction to Functional Programming Through Lambda Calculus

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

- 216 -<strong>An</strong>swers <strong>to</strong> exercisesChapter 21)i) λa.(a λb.(b a)) - a - (a λb.(b a)) - - a - λb.(b a) - b - (b a) - - b - - aii) λx.λy.λz.((z x) (z y)) - x λy.λz.((z x) (z y)) - y - λz.((z x) (z y)) - z - ((z x) (z y)) - (z x) - - z - - x - (z y) - - z - - yiii) (λf.λg.(λh.(g h) f) λp.λq.p) - λf.λg.(λh.(g h) f) - f - λg.(λh.(g h) f) - g - (λh.(g h) f) - λh.(g h) - h

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!