- Mastering Elixir
- André Albuquerque Daniel Caixinha
- 330字
- 2021-08-05 10:42:44
Elixir's data types
We will now describe Elixir's data types, which extend upon Erlang's data types. Elixir is a dynamic programming language. Consequently, you don't declare the type of each variable—it depends on the value it holds at each moment.
To improve the learning experience, we'll be providing some examples along the way. For now, we'll just use Elixir's REPL, IEx (short for Interactive Elixir). To start an IEx session, you must have Elixir installed on your machine. Elixir has an official page with instructions on how to do this if you don't have it installed, whether using package managers, the precompiled version, or compiling from the source yourself:
http://elixir-lang.github.io/install.html
Provided that you have Elixir already installed on your machine, type iex on your terminal to start a new IEx session. With this, you can run the examples present in this chapter in your machine. Note that your default iex prompt contains a number in between parenthesis, which represents the number of expressions you've entered in the current session, such as iex>(1). To declutter the output, in our examples, we've removed this number.
We'll be exploring IEx in greater detail toward the end of this chapter, in the Tooling and ecosystems section. Throughout the following subsections, we'll be mentioning some built-in modules in Elixir. We'll explore what modules are in the Functions and modules section—for now, it's enough to know that a module is a collection of functions.
- C++ Primer習(xí)題集(第5版)
- iOS Game Programming Cookbook
- C語(yǔ)言程序設(shè)計(jì)案例教程(第2版)
- PyTorch自動(dòng)駕駛視覺(jué)感知算法實(shí)戰(zhàn)
- The Computer Vision Workshop
- 精通Scrapy網(wǎng)絡(luò)爬蟲(chóng)
- 編程數(shù)學(xué)
- Highcharts Cookbook
- BIM概論及Revit精講
- RSpec Essentials
- C語(yǔ)言程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo) (第2版)
- Nginx Lua開(kāi)發(fā)實(shí)戰(zhàn)
- C/C++程序員面試指南
- C語(yǔ)言開(kāi)發(fā)基礎(chǔ)教程(Dev-C++)(第2版)
- Android開(kāi)發(fā)三劍客:UML、模式與測(cè)試