🐧
Practical Elixir
  • ðŸĨWelcome!
  • 🐷Prerequisites
  • ðŸļWhy functional programming?
  • ðŸĶ‹History of Elixir
  • 🐙Elixir fundamentals
    • 🐝Types
      • 🐒Basic types
      • ðŸŠąList and tuples
      • ðŸĶ‰Keyword lists and maps
    • ðŸĶ€Pattern matching
    • ðŸŪModules
    • ðŸĶŽFunctions
    • ðŸĶ­Conditionals
    • ðŸģRecursion
    • 🐖Enumerables
    • ðŸĶMix
  • ðŸĶ…Web development with Elixir
    • ðŸĶDirectory structure
    • ðŸĶĪFirst steps
    • ðŸĶ‡Phoenix basics
    • ðŸĢViewing to-do list
    • 🐔Adding dynamic behavior
    • ðŸĶ†Data persistence
  • 🐍Resources
Powered by GitBook
On this page
Edit on GitHub

Elixir fundamentals

PreviousHistory of ElixirNextTypes

Last updated 1 year ago

This guide aims to provide you with the fundamentals to start using Elixir with Phoenix for web development. It is by no means an exhaustive guide on the fundamentals of Elixir. For more in-depth information about Elixir, refer to the

This guide assumes that you have fundamental programming knowledge of concepts like integers/floats/booleans, conditionals, and loops.

Getting started

To try out Elixir, you can use the interactive shell (IEx). This should be automatically installed when you have . Go to your terminal and type

iex

You should see a prompt like this:

Îŧ ~/ iex
Erlang/OTP 26 [erts-14.2.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit] [dtrace]

Interactive Elixir (1.16.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> 

Then, you can try running each commands in this environment.

Alternatively, you can also create a .exs file and run it via elixir <filename>.exs.

For this guide, you can assume that all code snippets are run in IEx unless otherwise specified.

🐙
official documentation.
installed Elixir