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.

- 118 -def COMP = MAPCARS λX.λY.(STRING_EQUAL X Y)def SUM2 = MAPCARS λX.λY.(X+Y)6.17. SummaryIn this chapter we have:• introduced the list type• developed a representation for the list type and typed list operations• developed elementary functions for manipulating linear lists• introduced simplified list notations• introduced strings as character lists with simplified notation• introduced list case definitions and structure matching• developed functions for constructing ordered linear lists• developed functions for indexed linear list access• developed mapping functions <strong>to</strong> generalise linear list operationsSome of these <strong>to</strong>pics are summarised below.List notation:: == CONS [,] == ::[][] == ::NIL[] == NIL::(::) ==::::String notation" " == ::"""" = []List case definitionrec [] = or (::) = ==rec =IF ISNIL THEN ELSE

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

Saved successfully!

Ooh no, something went wrong!