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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

- 33 -i) the expression is an application:( )and the variable is bound in or For example, convict is bound in:(λconvict.convict fugitive)and in:(λprison.prison λconvict.convict)ii)the expression is a function:λ.and either the variable’s name is or it is bound in .For example, prisoner is bound in:λprisoner.(number6 prisoner)and in:λprison.λprisoner.(prison prisoner)Similarly, a variable is free in an expression if:i) the expression is a single name:and the variable’s name is For example, truant is free in:truantii)the expression is an application:( )and the variable is free in or in For example, escaper is free in:(λprisoner.prisoner escaper)and in:(escaper λjailor.jailor)iii)the expression is a function:λ.

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

Saved successfully!

Ooh no, something went wrong!