Yep, Erlang's use of = operator's pattern matching / assignment allows for some very elegant solutions, in addition to function guards, deconstruction, and other use-cases.
It basically uses pattern matching as a fundamental/primitive part of the language design, rather than some useful add-on or tertiary feature.
It basically uses pattern matching as a fundamental/primitive part of the language design, rather than some useful add-on or tertiary feature.