erlang-book-part1.pdf

(862 KB) Pobierz
part1.dvi
1
Note to readers:
This manuscript contains the complete text of Part I of Concurrent
programming in Erlang (ISBN 0-13-508301-X).
Prentice Hall has given us permission to make the text available.
Note that since Part II of the text (Applications) is missing all references
to pages and sections in Part II of the book are invalid and have been
replaced by question marks \??".
A free version of Erlang can be obtained from
http://www.ericsson.com/technology/opensource/erlang
 
2
This page is intentionally plank.
Concurrent Programming
in ERLANG
Second Edition
Joe Armstrong
Robert Virding
Claes Wikstrom
Mike Williams
Ericsson
Telecommunications Systems Laboratories
Box 1505
S - 125 25 Alvsjo
Sweden
PRENTICE HALL
Englewood Clis, New Jersey 07632
Contents
Preface
viii
Acknowledgments
x
Introduction
1
I Programming
7
1 An ERLANG Tutorial
9
1.1 Sequential Programming
9
1.2 Data Types
12
1.3 Pattern Matching
13
1.4 Built-in Functions
15
1.5 Concurrency
15
2 Sequential Programming
18
2.1 Terms
18
2.2 Pattern Matching
21
2.3 Expression Evaluation
23
2.4 The Module System
25
2.5 Function Denition
26
2.6 Primitives
31
2.7 Arithmetic Expressions
34
2.8 Scope of Variables
35
3 Programming with Lists
37
3.1 List Processing BIFs
37
v
103284598.001.png
Zgłoś jeśli naruszono regulamin