Description |
1 online resource |
Contents |
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 |
Summary |
"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 to write simple Erlang programs by teaching you one basic skill at a time. You'll learn about pattern matching, recursion, message passing, process-oriented programming, and establishing pathways for data rather than telling it where to go. By the end of your journey, you'll understand why Erlang is ideal for concurrency and resilience."--Provided by publisher |
Notes |
Includes index |
Bibliography |
Includes bibliographical references and index |
Notes |
Online resource, title from PDF title page (EBSCO, viewed March 15, 2017) |
Subject |
ERLANG (Computer program language)
|
|
Web services.
|
|
Application software -- Development.
|
|
COMPUTERS -- Web -- Web Services & APIs.
|
|
COMPUTERS -- Internet -- Application Development.
|
|
Application software -- Development
|
|
ERLANG (Computer program language)
|
|
Web services
|
Form |
Electronic book
|
ISBN |
9781491973349 |
|
149197334X |
|
9781491973325 |
|
1491973323 |
|
1491973374 |
|
9781491973370 |
|