fact(0) -> 1; %% Pattern matching for control-flow fact(N) -> N * fact(N-1). %% Recursion to create loops > example:fact(10). %% Interactive shell for fast iterations 3628800 > [{I, example:fact(I)} || I <- lists:seq(1,10)]. [{1, 1}, {2, 2}, {3, 6}, {4, 24}, {5, 120}, {6, 720}, {7, 5040}, {8, 40320}, {9, 362880}, {10, 3628800}] > Fruits = ["banana","monkey","jungle"]. %% Immutable variables ["bana
![Index - Erlang/OTP](https://cdn-ak-scissors.b.st-hatena.com/image/square/41936de8d42f8ed07833284e96a39afbd21ae213/height=288;version=1;width=512/https%3A%2F%2Fwww.erlang.org%2Fassets%2Fimg%2Ferlang-228x200.png)