Elixir
目录
Links
- Elixir
- Elixir School
- Elixir 程序设计 · 看云
- 神奇的仙丹,性感的 Elixir - 张逸说 - SegmentFault 思否
- A week with Elixir - Joe Armstrong - Erlang and other stuff
- https://klibert.pl/statics/python-and-elixir/
- Elixir交互式Shell: 3. 创建本地和远程Shell - SegmentFault 思否
- Is Elixir a scripting language?
- Cool CLIs in Elixir (Part 2) with IO.ANSI | Dennis Beatty
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
- Erlang/Elixir 中的 OTP 编程介绍 - 掘金
- OTP in Elixir: Learn GenServer by Building Your Own URL Shortener - Ilija Eft…
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
- Phoenix
- A Gentle Introduction to GraphQL with Elixir and Phoenix
- Creating GraphQL APIs Using Elixir Phoenix and Absinthe