Tag:Matching mode
-
Summary of Matching Patterns in Erlang
Matching in Assignment Atom matching Copy codeThe code is as follows: atom = atom % atom another = another % another atom = another % exception error Variable matching Copy codeThe code is as follows: Var = 2. % 2 Var = 3 – 1. % 2 Var = 1. % exception error Tuple matching […]