Cargando…

Learn you a Haskell for great good! : a beginner's guide /

Learn You a Haskell for Great Good! (LYAH!) is a fun, illustrated guide to learning Haskell, a functional programming language that's growing in popularity. LYAH! introduces programmers familiar with imperative languages (such as C++, Java, or Python) to the unique aspects of functional program...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Lipovača, Miran
Formato: Electrónico eBook
Idioma:Inglés
Publicado: San Francisco, Calif. : No Starch Press, ©2011.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Brief Contents; Contents in Detail; Introduction; So, What's Haskell?; What You Need to Dive In; Acknowledgments; Chapter 1: Starting Out; Calling Functions; Baby's First Functions; An Intro to Lists; Texas Ranges; I'm a List Comprehension; Tuples; Chapter 2: Believe the Type; Explicit Type Declaration; Common Haskell Types; Type Variables; Type Classes 101; Chapter 3: Syntax in Functions; Pattern Matching; Guards, Guards!; where?!; let It Be; case Expressions; Chapter 4: Hello Recursion!; Maximum Awesome; A Few More Recursive Functions; Quick, Sort!; Thinking Recursively.
  • Chapter 5: Higher-Order FunctionsCurried Functions; Some Higher-Orderism Is in Order; The Functional Programmer's Toolbox; Lambdas; I Fold You So; Function Application with ; Function Composition; Chapter 6: Modules; Importing Modules; Solving Problems with Module Functions; Mapping Keys to Values; Making Our Own Modules; Chapter 7: Making Our Own Types and Type Classes; Defining a New Data Type; Shaping Up; Record Syntax; Type Parameters; Derived Instances; Type Synonyms; Recursive Data Structures; Type Classes 102; A Yes-No Type Class; The Functor Type Class; Kinds and Some Type-Foo.
  • Chapter 8: Input and OutputSeparating the Pure from the Impure; Hello, World!; Gluing I/O Actions Together; Some Useful I/O Functions; I/O Action Review; Chapter 9: More Input and More Output; Files and Streams; Reading and Writing Files; To-Do Lists; Command-Line Arguments; More Fun with To-Do Lists; Randomness; Bytestrings; Chapter 10: Functionally Solving Problems; Reverse Polish Notation Calculator; Heathrow to London; Chapter 11: Applicative Functors.; Functors Redux; Functor Laws; Using Applicative Functors; Useful Functions for Applicatives; Chapter 12: Monoids.
  • Wrapping an Existing Type into a New TypeAbout Those Monoids; Meet Some Monoids; Folding with Monoids; Chapter 13: A Fistful of Monads; Upgrading Our Applicative Functors; Getting Your Feet Wet with Maybe; The Monad Type Class; Walk the Line; do Notation; The List Monad; Monad Laws; Chapter 14: For a Few Monads More; Writer? I Hardly Knew Her!; Reader? Ugh, Not This Joke Again; Tasteful Stateful Computations; Error Error on the Wall; Some Useful Monadic Functions; Making a Safe RPN Calculator; Composing Monadic Functions; Making Monads; Chapter 15: Zippers; Taking a Walk; Focusing on Lists.
  • A Very Simple FilesystemWatch Your Step; Thanks for Reading!; Index.