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.

- 20 -λx.xand the argument expression is:λs.(s s)When this application is evaluated, the function expression bound variable:xis replaced by the argument:λs.(s s)in the function expression body:xgiving:λs.(s s)which is the original argument.Let us apply this self application function <strong>to</strong> the identity function:(λs.(s s) λx.x)Here, the function expression is:λs.(s s)and the argument expression is:λx.xWhen this application is evaluated, the function expression bound variable:sis replaced by the argument:λx.xin the function expression body:(s s)giving a new application:(λx.x λx.x)with function expression:λx.xand argument expression:

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

Saved successfully!

Ooh no, something went wrong!