Skip to content

Today I Learned in Elixir. Daily learnings about Elixir, Phoenix, Ecto and Erlang.

Notifications You must be signed in to change notification settings

rafapaez/til-elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TIL Elixir

Today I Learned in Elixir

A collection of didactic and fun Elixir code examples I learn day to day.

Concepts

The lessons shared here cover the following Elixir and Functional Programming concepts:

  • Elixir Basics
  • Pattern Matching
  • Immutability
  • Modules and Functions
  • Pipe Operator
  • Control Flow
  • Collections
  • Enumerables and Streams
  • Recursion
  • Comprehensions
  • Protocols
  • Structs
  • Polymorphism
  • Behaviours
  • Documentation
  • Testing
  • Mix
  • Processes and Concurrency
  • OTP
  • Meta-programming
  • Benchmarking

Installation

Install Elixir, if you haven't already.

Next, follow these setup steps:

$ git clone https://github.com/rafapaez/til-elixir
$ cd til_elixir
$ mix deps.get

Usage

Run Elixir's Interactive Shell (IEx) with:

$ iex -S mix

And start playing with the repo's code. For example:

iex(1)> import TILEX.BangPipe
TILEX.BangPipe

iex(2)> {:ok, ["Welcome", "to", "TIL", "Elixir!"]} <|> Enum.join(" ")
"Welcome to TIL Elixir!"

Check any module's documentation for more code samples.

Testing

Run the tests with:

$ mix test

Note all modules and functions are tested using Doctests and ExUnit.

License

© 2017 Rafa Paez

This repository is licensed under the MIT license.

About

Today I Learned in Elixir. Daily learnings about Elixir, Phoenix, Ecto and Erlang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages