# Erlang Level 1: Erlang Foundations

> Level 1: Erlang Foundations of the LoWisa Erlang course: Terms and Variables, Pattern Matching, Functions and Modules. 3 lessons and 9 ideas, each explained in one line.

Erlang Foundations is level 1 of 17 of the [LoWisa Erlang course](/courses/erlang/). It has 3 lessons and 9 ideas. Below is every lesson and what it teaches, in one line each.

## Terms and Variables

- **Terms.** Every Erlang value is a **term**: integers, atoms, tuples, lists, maps, binaries, pids.
- **Atoms.** An **atom** is a literal constant: ok, error, undefined: the vocabulary of every return value.
- **Single assignment.** Variables bind **once**: X = 5 forever in that scope; rebinding is a match error, not an update.

## Pattern Matching

- **Match, not assign.** The equals sign is a **match**: {ok, Value} = parse(Line) binds by shape or crashes honestly.
- **Destructuring.** Matching **destructures**: heads of lists, elements of tuples: data pulled apart by shape.
- **Match as control flow.** Function clauses match in order: the first **clause** whose patterns fit runs, the rest never do.

## Functions and Modules

- **Modules.** Code lives in **modules**: -module(billing).: with -export listing the public functions.
- **Function clauses.** A function is a set of **clauses**: area({circle, R}) and area({square, S}): dispatch by pattern.
- **Arity matters.** Functions are named with **arity**: sum/1 and sum/2 are different functions entirely.

## Before and after this level

- **Before:** [Start Here: Let It Crash](/courses/erlang/start-here/): BEAM Virtual Machine, Concurrency and Fault Tolerance.
- **Next:** [Level 2: Functional Erlang](/courses/erlang/level-2-functional-erlang/): Recursion, Lists and Higher-Order Functions, Immutable Data Transformation.

In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See [Checkpoints and flashcards](/help/checkpoints-and-flashcards/).

## Frequently asked questions

### What does Erlang Level 1: Erlang Foundations cover?

Terms and Variables, Pattern Matching, Functions and Modules: 3 lessons and 9 ideas.

### What should I know before this level?

The level before it, Start Here: Let It Crash, which covers BEAM Virtual Machine, Concurrency and Fault Tolerance.

## Learn Erlang on your phone

The first level is free. LoWisa is on Google Play and the App Store.

---

Source: https://lowisa.dev/courses/erlang/level-1-erlang-foundations/ · Updated 2026-11-25
