About This Book "Erlang in 8 Hours" is a textbook for high school and college students; it covers all essential Erlang language knowledge . You can learn complete primary skills of Erlang programming fast and easily . The textbook includes a lot of practical examples for beginners and includes exercises for the college final exam, the engineer certification exam, and the job interview exam . "Erlang in 8 Hours" is a useful textbook for beginners . The straightforward definitions, the plain examples, the elaborate explanations and the neat layout feature this helpful and educative book . You will be impressed by its distinctive and tidy writing style . Reading this book is a great enjoyment !
Note This book is only suitable for Erlang programming beginners, high school students and college students; it is not for the experienced Erlang programmers .
Source Code Available This book provides source code for reference; you can reference the source code for better study, or copy the source code to your favorite editor to test the programs.
Table of Contents
Hour 1 What is Erlang Language? Install Erlang Setup Environment Variables Erlang Shell Ending Symbol Give up Commands Summary
Hour 2 Halt the Erlang Shell Define a Variable Show Binding Remove Binding Remove Specified Binding History of Commands Hello World Program Run "Hello World" Program Comment Hyphen Symbol Summary
Hour 3 Module Declaration Example
Module Compiling Module Attribute Import Attribute Export Attribute Output Command Erlang Keywords Escape Sequences Data Type Output Format Summary
Hour 4 Output Format Example Variable Number Type Atom Type Atom Example Boolean Type List Type List Example Modify Fist Element Tuple Type Tuple Example Summary
Hour 5 Map Type Map Example Bitwise Operators Bitwise Operations Chart Arithmetical Operators Comparison Operators Logical Operators String Summary
Hour 6 Function Anonymous Function Function Overloading Guard Statement Recursive Function Recursive Function Example Built in Functions Checking Function String Functions "len()" & "concat()" Summary
Hour 7 "str()" & substr() "tokens()" & "join()" "words()" & "sub_word" "strip()" & "sub_string()" "left()" & "right()" "to_lower()" & "to_upper()" While Loop Statement For Loop Statement If Statement Summary
Hour 8 If Statement Example If More Conditions Nested If Statements Case Statement Case Statement Example Get Days of Month Summary