This is the result of how Elixir works =. It does not mean:
"he";
rest = "hello";
No, pattern matching is performed instead. From the docs:
, = Elixir .
( .) , , , = - , .
= . , "". , , "". - . "he" + rest = "hello". → "he" + "llo" = "hello". , , rest = "llo".