Introducing Erlang : getting started in functional programming /
"If you're new to Erlang, its functional style can seem difficult, but with help from this hands-on introduction, you'll scale the learning curve and discover how enjoyable, powerful, and fun this language can be. In this updated second edition, author Simon St. Laurent shows you how...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Sebastopol :
O'Reilly,
2017.
|
Edición: | 2nd edition. |
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Copyright; Table of Contents; Preface; Who This Book Is For; Who This Book Is Not For; What This Book Will Do For You; How This Book Works; Etudes for Erlang; Why I Wrote This Book; Other Resources; Are You Sure You Want Erlang?; Erlang Will Change You; Conventions Used in This Book; A Note on Erlang Syntax; Using Code Examples; Help This Book Grow; Please Use It For Good; O'Reilly Safari; How to Contact Us; Acknowledgments; Chapter 1. Getting Comfortable; Installation; Firing It Up; First Steps: The Shell; Moving through Text; Moving through History; Moving through Files; Doing Something.
- Calling FunctionsNumbers in Erlang; Working with Variables in the Shell; Seeing Your Bound Variables; Clearing Bound Variables in the Shell; Chapter 2. Functions and Modules; Fun with fun; Defining Modules; From Module to fun; Functions and Variable Scope; Module Directives; Documenting Code; Documenting Modules; Documenting Functions; Documenting Your Application; Chapter 3. Atoms, Tuples, and Pattern Matching; Atoms; Pattern Matching with Atoms; Atomic Booleans; Guards; Underscoring That You Don't Care; Adding Structure: Tuples; Pattern Matching with Tuples; Processing Tuples.
- Chapter 4. Logic and RecursionLogic Inside of Functions; Evaluating Cases; If This, Then That; Variable Assignment in case and if Constructs; The Gentlest Side Effect: io:format; Simple Recursion; Counting Down; Counting Up; Recursing with Return Values; Chapter 5. Communicating with Humans; Strings; Asking Users for Information; Gathering Terms; Gathering Characters; Reading Lines of Text; Chapter 6. Lists; List Basics; Splitting Lists into Heads and Tails; Processing List Content; Creating Lists with Heads and Tails; Mixing Lists and Tuples; Building a List of Lists.
- Chapter 7. Higher-Order Functions and List ComprehensionsSimple Higher-Order Functions; Creating New Lists with Higher-Order Functions; Reporting on a List; Running List Values Through a Function; Filtering List Values; Beyond List Comprehensions; Testing Lists; Splitting Lists; Folding Lists; Chapter 8. Playing with Processes; The Shell Is a Process; Spawning Processes from Modules; Lightweight Processes; Registering a Process; When Processes Break; Processes Talking Amongst Themselves; Watching Your Processes; Breaking Things and Linking Processes.
- Chapter 9. Exceptions, Errors, and DebuggingFlavors of Errors; Catching Runtime Errors as They Happen; Raising Exceptions with throw; Logging Progress and Failure; Debugging through a GUI; Tracing Messages; Watching Function Calls; Chapter 10. Storing Structured Data; Mapping Your Data; From Tuples to Records; Setting Up Records; Creating and Reading Records; Using Records in Functions and Modules; Storing Records in Erlang Term Storage; Creating and Populating a Table; Simple Queries; A Key Feature: Overwriting Values; ETS Tables and Processes; Next Steps; Storing Records in Mnesia.