diff --git a/cheatsheets/gleam-for-elixir-users.md b/cheatsheets/gleam-for-elixir-users.md index 8696f74d..f0c9f9ec 100644 --- a/cheatsheets/gleam-for-elixir-users.md +++ b/cheatsheets/gleam-for-elixir-users.md @@ -25,7 +25,10 @@ subtitle: Hello Elixir Alchemists! - [Tuples](#tuples) - [Lists](#lists) - [Atoms](#atoms) - - [Dicts](#dicts) +- [Patterns](#patterns) +- [Dicts](#dicts) +- [Patterns](#patterns) +- [Flow control](#flow-control) IN-PROGRESS - [Patterns](#patterns) - [Flow control](#flow-control) TODO - [Case](#case) TODO @@ -687,5 +690,8 @@ list = [1, 2, 3] {1 = a, 2 = b} = {1, 2} ``` +## Flow Control +### Case +Even though both Elixir and Gleam are functional programming language. There is a huge difference between them and with others non-functional language, which is not providing `if/else`, the fundamental part for most programming language. In other hand, we use `match` instead. Gleam features a strong pattern matching feature like Elixir.