You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
285 B
11 lines
285 B
4 years ago
|
## Nonexhaustive pattern match in Erlang
|
||
|
|
||
|
Reports an error when a function clause is missing.
|
||
|
|
||
|
For example, if we call `tail([])` and the full definition of `tail` is
|
||
|
```erlang
|
||
|
tail([_|Xs]) -> Xs.
|
||
|
```
|
||
|
|
||
|
The error is also reported if the failing pattern match is in a `case` expression.
|