プログラミング Elixir 第一章
概要
Elixir の概要と、インストール方法、Elixir の REPL である iex の使い方などが紹介されている。Elixir は並列性が高く、関数同士をつなげるのが容易で柔軟性の高い言語とのこと。
インストール方法 (Mac)
Bundler で一発
% brew install elixir
% elixir -v
Elixir 1.3.2
iex
h でヘルプが見れたり、
> h IO.puts
def puts(device \\ group_leader(), item)
Writes item to the given device, similar to write/2, but adds a newline at the
end.
i で値の情報を確認できる
> i 123
Term
123
Data type
Integer
Reference modules
Integer
ホームに .iex.exs
というファイルを作れば、カラーなど自分で色々とカスタマイズもできるとのこと。
Hello World
初心者の定番 Hello World!!
hello_world.exs
IO.puts 'Hello, World!'
% elixir hello_world.exs
Hello, World!
できたー
Author And Source
この問題について(プログラミング Elixir 第一章), 我々は、より多くの情報をここで見つけました https://qiita.com/pekepek/items/c6cfe2e583614b684d6e著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .