Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Études for Erlang
Études for Erlang
Contributor Guidelines
How to Contribute
Create a GitHub account
Copy (“fork”) the project repository to your account
Edit your file using AsciiDoc
Double check your submission and add your biography
Submit a pull request
Engage in back-and-forth
Preface: What’s an étude?
What are Études for Erlang?
How This Book was Written
Working with Other Books
Acknowledgments
1. Getting Comfortable with Erlang
Étude 1-1: Experimenting with Errors
2. Functions and Modules
Étude 2-1: Writing a Function
Étude 2-2: Documenting a Module
Étude 2-3: Documenting a Function
3. Atoms, Tuples, and Pattern Matching
Étude 3-1: Pattern Matching
Étude 3-2: Guards
Étude 3-3: Underscores
Étude 3-4: Tuples as Parameters
4. Logic and Recursion
Étude 4-1: Using case
Étude 4-2: Recursion
Étude 4-3: Non-Tail Recursive Functions
Étude 4-4: Tail Recursion with an Accumulator
Étude 4-5: Recursion with a Helper Function
5. Strings
Étude 5-1: Validating Input
Étude 5-2: Using the re Module
6. Lists
Étude 6-1: Recursive Iteration through a List
Étude 6-2: Iteration through Lists (More Practice)
Étude 6-3: Accumulating the Sum of a List
Interlude: “Mistakes were made.”
Étude 6-4: Lists of Lists
Étude 6-5: Random Numbers; Generating Lists of Lists
7. Higher Order Functions and List Comprehensions
Étude 7-1: Simple Higher Order Functions
Étude 7-2: List Comprehensions and Pattern Matching
Part One
Part Two
Étude 7-3: Using lists:foldl/3
Étude 7-4: Using lists:split/2
Étude 7-5: Multiple Generators in List Comprehensions
Étude 7-6: Explaining an Algorithm
8. Processes
Étude 8-1: Using Processes to Simulate a Card Game
The Art of War
War: What is it good for?
Pay Now or Pay Later
The Design
Messages Are Asynchronous
Hints for Testing
9. Handling Errors
Étude 9-1: try and catch
Étude 9-2: Logging Errors
10. Storing Structured Data
Étude 10-1: Using ETS
Part One
Part Two
Part Three
Étude 10-2: Using Mnesia
Part One
Part Two
Part Three
11. Getting Started with OTP
Étude 11-1: Get the Weather
Obtaining Weather Data
Parsing the Data
Set up a Supervisor
Étude 11-2: Wrapper Functions
Étude 11-3: Independent Server and Client
Étude 11-4: Chat Room
The chatroom Module
The person Module
Wrapper Functions for the person module
Putting it All Together
A. Solutions to Études
Solution 2-1
geom.erl
Solution 2-2
geom.erl
Solution 2-3
geom.erl
Solution 3-1
geom.erl
Solution 3-2
geom.erl
Solution 3-3
geom.erl
Solution 3-4
geom.erl
Solution 4-1
geom.erl
Solution 4-2
dijkstra.erl
Solution 4-3
powers.erl
powers_traced.erl
Solution 4-4
powers.erl
powers_traced.erl
Solution 4-5
powers.erl
Solution 5-1
geom.erl
ask_area.erl
Solution 5-2
dates.erl
Solution 6-1
stats.erl
Solution 6-2
stats.erl
Solution 6-3
dates.erl
Solution 6-4
teeth.erl
stats.erl
Solution 6-5
non_fp.erl
Solution 7-1
calculus.erl
Solution 7-2
patmatch.erl
Solution 7-3
stats.erl
Solution 7-4
dates.erl
Solution 7-5
cards.erl
Solution 7-6
cards.erl
Solution 8-1
cards.erl
game.erl
Solution 9-1
stats.erl
Solution 9-2
bank.erl
Solution 10-1
phone_records.hrl
phone_ets.erl
generate_calls.erl
Solution 10-2
phone_records.hrl
phone_mnesia.erl
pet_records.hrl
pet_mnesia.erl
Solution 11-1
weather.erl
weather_sup.erl
Solution 11-2
weather.erl
Solution 11-3
Solution 11-4
chatroom.erl
person.erl
Copyright
← Prev
Back
Next →
← Prev
Back
Next →