目录

Elixir

Install

macOS

brew install elixir

Language Reference

Operators

  • in

Range

Types

  • Basics
    • Integers
    • Floats
    • Booleans
    • Atoms
    • Strings
  • Collections
    • Lists
    • Tuples
    • Keyword lists
    • Maps

Notes

当匹配的左边包含变量的时候,匹配操作符同时会做赋值操作。

elixir-ls

mkdir -p ~/.local/elixir-ls
unar elixir-ls-1.12.1.zip -o ~/.local/elixir-ls -D

# Add following to .zshenv
[ -d ~/.local/elixir-ls ] && export PATH=~/.local/elixir-ls:$PATH

OTP

IEx

  • i
  • c
  • r

Mix

# Usage: mix [task]
mix help                        # Lists all available tasks
mix help TASK                   # Prints documentation for a given task

Hex

The package manager for the Erlang ecosystem

Mirrors

mix hex.config mirror_url https://hexpm.upyun.com

Frameworks

Phoenix

Solutions

Periodic task