官术网_书友最值得收藏!

What is IEx?

The good news: Elixir includes a tool called a Read-Evaluate-Print-Loop (REPL), which is essentially an Elixir shell. You can think of this as being similar to an irb in Ruby or the node shell in Node.js. It is a very detailed and helpful tool that we'll be referring to quite a bit in our journey of building this full web app! To open REPL up (assuming you have Elixir installed), run the following command:

$> iex

You should see something similar to the following snippet appear on your screen:

$> iex
Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Interactive Elixir (1.5.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>

Now we can start messing around with some sample Elixir code! Let's start off with a couple of base scenarios.

主站蜘蛛池模板: 冀州市| 梧州市| 壶关县| 沧源| 丘北县| 通许县| 南开区| 新密市| 彰武县| 大足县| 莒南县| 巴林左旗| 左云县| 抚州市| 武安市| 星子县| 晋州市| 九台市| 耒阳市| 嘉祥县| 紫阳县| 陈巴尔虎旗| 唐海县| 鄂尔多斯市| 报价| 咸阳市| 泾阳县| 波密县| 天祝| 抚宁县| 南涧| 永平县| 乐至县| 黄冈市| 卢龙县| 民勤县| 深水埗区| 刚察县| 涿州市| 平顺县| 靖西县|