Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gleam for elixir cheatsheets work in progress #428

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cheatsheets/gleam-for-elixir-users.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.