Elixir Scope

Learn the accessibility of data in top level, module, function and comprehension scope.

We'll cover the following...

Elixir is lexically scoped. The basic unit of scoping is the function body. Variables defined in a function (including its parameters) are local to that function. In addition, modules define a scope for local variables, but these are accessible only at the top level of that module and not in functions defined in the ...