Thinking Functionally with HaskellCambridge University Press, 2015 - 344 páginas Richard Bird is famed for the clarity and rigour of his writing. His new textbook, which introduces functional programming to students, emphasises fundamental techniques for reasoning mathematically about functional programs. By studying the underlying equational laws, the book enables students to apply calculational reasoning to their programs, both to understand their properties and to make them more efficient. The book has been designed to fit a first- or second-year undergraduate course and is a thorough overhaul and replacement of his earlier textbooks. It features case studies in Sudoku and pretty-printing, and over 100 carefully selected exercises with solutions. This engaging text will be welcomed by students and teachers alike. |
Índice
1 | 3 |
1 | 12 |
Expressions types and values | 22 |
3 | 49 |
3 | 59 |
7 | 62 |
6 | 110 |
7 | 145 |
Prettyprinting | 181 |
4 | 210 |
Imperative functional programming | 239 |
Parsing | 276 |
A simple equational calculator | 298 |
| 338 | |
| 341 | |
4 | 156 |
Otras ediciones - Ver todo
Términos y frases comunes
Answer to Exercise apply approx argument array bifunctor BinTree Bool build2 calculator chapter Char cmap compute concat map concatenation define definition defn digits document doubly-linked list eager evaluation element empty list equation example Exercise F expand expr expr1 expr2 expression filter all nodups finite flatten foldl f e foldr foldr fe fork functional composition functional programming functor getChar ghci Haskell identity element induction infinite list Integer labels laws layouts layr lazy evaluation list comprehension list of length lists xs map boxs map f map g match matchA matrix module monad mplus nest i x newline Node operations parse Parser prelude function pretty-printing pruneRow putStrLn Quicksort recursive result scanl sequence showsPrec sort standard prelude String Succ Sudoku takes type class undefined words x:xs xmatchesA Zero zipWith3
