Two Dozen Short Lessons In Haskell


E-Book Content

Two Dozen Short Lessons in Haskell a participatory textbook on functional programming by Rex Page School of Computer Science University of Oklahoma Copyright © 1995, 1996, 1997 by Rex Page Permission to copy and use this document for educational or research purposes of a non-commercial nature is hereby granted, provided that this copyright notice is retained on all copies. All other rights reserved by author. Rex Page School of Computer Science University of Oklahoma 200 Felgar Street — EL114 Norman OK 73019 USA [email protected] Table of Contents 1 .................................................................................................. How To Use This Book 1 10 .............................................................................................................. Definitions 2 14 ...............................................................................How to Run Haskell Programs 3 17 ......................................... Computations on Sequences — List Comprehensions 4 21 ...................................................................... Function Composition and Currying 5 25 .......................... Patterns of Computation — Composition, Folding, and Mapping 6 33 ......................................................................................................................Types 7 37 ........................................................ Function Types, Classes, and Polymorphism 8 42 ............................................ Types of Curried Forms and Higher Order Functions 9 46 ..............................................................Private Definitions — the where-clause 10 54 ..............................................................................................................
You might also like

High Performance Data Mining
Authors: Guo , Grossman. (eds.)    203    0


Invitation To Fixed-parameter Algorithms
Authors: Rolf Niedermeier    108    0


Handbook Of Data Structures And Applications
Authors: Dinesh P. Mehta , Sartaj Sahni (editors)    120    0


Introduction To Information Theory And Data Compression
Authors: D.C. Hankerson , Greg A. Harris , Peter D. Johnson Jr.    150    0


A Practical Theory Of Programming
Authors: Eric C.R. Hehner    148    0


Beginning Python
Authors: Peter C. Norton , Alex Samuel , Dave Aitel , Eric Foster-Johnson , Leonard Richardson , Jason Diamond , Aleatha Parker , Michael Roberts    187    0


Fortran 90 For Scientists And Engineers
Authors: Brian Hahn    153    0


Fortran 90: A Conversion Course For Fortran 77 Programmers
Authors: Walter S. Brainerd , Charles H. Goldberg , Jeanne C. Adams    128    0


Encyclopedia Of Physical Science And Technology - Computer Software
Authors: Robert A. Meyers (Editor-in-Chief)    187    0


Introduction To Robust Estimation And Hypothesis Testing
Authors: Rand R. Wilcox    105    0