Elixir v1.6.5 String View Source A String in Elixir is a UTF-8 encoded binary. Codepoints and grapheme cluster The functions in this module act according to the Unicode Standard, version 10.0.0. As per the standard, a codepoint is a single Unicode Character, which may be represented by one or more bytes. For example, the codepoint “é” is two bytes: iex> byte_size("é") 2 However, this module return
Elixir v1.6.5 Kernel View Source This module is the entry point of the Elixir programming language. It provides the default functions and macros Elixir imports into your environment. Those can be directly invoked in your code without the module name: iex> is_number(13) true These functions and macros can be skipped or cherry-picked via the Kernel.SpecialForms.import/2 macro. For instance, if you w
The quickest way to install Elixir is through a distribution or using one of the available installers. If such an option is not available, then we recommend using the precompiled packages or compiling the language yourself. All of these options are detailed next. Note that Elixir v1.17 requires Erlang 25.0 or later. Many of the instructions below will automatically install Erlang for you. If they
Erlang/Elixir Syntax: A Crash Course This is a quick introduction to the Elixir syntax for Erlang developers and vice-versa. It is the absolute minimum amount of knowledge you need in order to understand Elixir/Erlang code, support interoperability, read the docs, sample code, etc. Running code Erlang The fastest way to run some code is to launch the Erlang shell – erl. Many code snippets on this
IEx v1.0.5 IEx Elixir’s interactive shell. This module is the main entry point for Interactive Elixir and in this documentation we will talk a bit about how IEx works. Notice that some of the functionality described here will not be available depending on your terminal. In particular, if you get a message saying that the smart terminal could not be run, some of the features described here won’t wo
All Elixir code runs inside lightweight threads of execution (called processes) that are isolated and exchange information via messages: current_process = self() # Spawn an Elixir process (not an operating system one!) spawn_link(fn -> send(current_process, {:msg, "hello world"}) end) # Block until the message is received receive do {:msg, contents} -> IO.puts(contents) end Due to their lightweigh
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く