LoginSignup
5
1

ElixirでHelloWorldプログラムを実装してみた

Posted at

概要

ElixirでHelloWorldプログラムを実装してみました。以下のページを参考にしました。

環境構築

以下のコマンドを実行しました。

$ sudo apt install elixir

プログラム作成

以下の通りソースコードを作成しました。

hello.exs
defmodule Hello do

    def world do
        IO.puts "Hello world"
    end
end

Hello.world

プログラム実行

以下の通りコマンドを実行しました。

$ elixir hello.exs 
Hello world

まとめ

何かの役に立てばと。

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1