Erlang Extensions Since 4.4

Version 5.0.2

Bibliography | Glossary | Cover | Up

Table of Contents

1 Records
1.1 Defining a Record
1.2 Including a Record Definition
1.3 Creating a Record
1.4 Selectors
1.5 Updating a Record
1.6 Type Testing
1.7 Pattern Matching
1.8 Nested Records
1.9 Internal Representation of Records
1.10 Example

2 Programming with Funs
2.1 Higher Order Functions
2.2 Advantages of Higher Order Functions
2.3 The Syntax of Funs
2.4 Variable Bindings within a Fun
2.5 Funs and the Module lists
2.6 Funs which Return Funs

3 List Comprehensions
3.1 Examples of List Comprehensions
3.2 Variable Bindings in List Comprehensions

4 Macros
4.1 Macros and Tokens
4.2 Pre-Defined Macros
4.3 Stringifying Macro Arguments
4.4 Flow Control in Macros
4.5 A Macro Expansion Utility

5 Includes
5.1 The -include directive
5.2 The -include_lib directive

6 The bit syntax
6.1 Introduction
6.2 A Lexical Note
6.3 Segments
6.4 Defaults
6.5 Constructing binaries
6.6 Matching binaries
6.7 Traps and pitfalls

7 Miscellaneous
7.1 Token Syntax
7.2 String concatenation
7.3 The ++ list concatenation operator
7.4 The -- list subtraction operator
7.5 Bitwise operator bnot
7.6 Logical operators
7.7 Match operator = in patterns
7.8 Literal string prefix in patterns
7.9 Disjunctions in guards
7.10 Expressions in patterns