오늘 처음 Elixir를 사용중...
Lets start..
아래는 처음 하는 사람이 하는 내용임.
### install on macos
(base) ➜ ~ brew install elixir
### test by iex
(base) ➜ ~ iex
Erlang/OTP 27 [erts-15.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit] [dtrace]
Interactive Elixir (1.18.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> 1 + 10
11
iex(2)> "hello" <> " world"
"hello world"
iex(3)> exit
### run my first program
(base) ➜ ~ mkdir -p Project/mulder/elx
(base) ➜ ~ cd Project/mulder/elx
(base) ➜ elx cat > simples.exs
IO.puts("Hello world from Elixir")
(base) ➜ elx elixir simples.exs
Hello world from Elixir
(base) ➜ elx
천리길도 한걸음부터 ...