About Elixir
Elixir is a functional, concurrent, general-purpose programming language that runs on the BEAM virtual machine used to implement the Erlang programming language. Elixir builds on top of Erlang and shares the same abstractions for building distributed, fault-tolerant applications.
Cheat Sheet
Hello World
defmodule Greeter do
def greet(name) do
message = "Hello, " <> name <> "!"
IO.puts message
end
end
Greeter.greet("world")
Control Flow
IF
if false do
"This will never be seen"
else
"This will"
end
Error
```elixir
try do
throw(:hello)
catch
message -> "Got #{message}."
after
IO.puts("I'm the after clause.")
end
Built With
- elixir

Log in or sign up for Devpost to join the conversation.