Version 5.2
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
7.11 Boolean expresions in guards
7.12 Short-circuit boolean expressions