Learn-Elixir

所属分类:collect
开发工具:Elixir
文件大小:0KB
下载次数:0
上传日期:2022-08-02 00:25:12
上 传 者sh-1993
说明:  一个存储库,用于展示我对Elixir编程语言的知识,并继续学习该语言。,
(A repository for showcasing my knowledge of the Elixir programming language, and continuing to learn the language.,)

文件列表:
Learn-Elixir-Git-Template_Source/ (0, 2022-07-27)
Learn-Elixir-Git-Template_Source/!JEKYLL (18, 2022-07-27)
Learn-Elixir-Git-Template_Source/!USING_THIS_TEMPLATE.md (2565, 2022-07-27)
Learn-Elixir-Git-Template_Source/.editorconfig (1327, 2022-07-27)
... ...

*** ![/Elixir_programming_language_logo.png](https://github.com/Elixir_programming_language_logo.png) ### Learning Elixir (programming language) I know very little about the Elixir programming language. This document will go over all of my knowledge of the Elixir programming language. #### Hello World in Elixir This is how you make a Hello World program in Elixir: ```elixir iex> IO.puts("Hello World!") ``` #### Comments in Elixir Comments in Elixir are the same as in Shell. ##### Single line comments Single line comments in Elixir are written like so: ```elixir # This is a single line comment ``` ##### Multi-line comments I don't know if Elixir supports multi-line comments. #### Break keyword in Elixir ```elixir break ``` To this day, I am still not entirely sure what the `break` keyword does, but most languages support it. _/!\ This example has not been tested yet, and may not work_ ##### The IEX shell Elixir commonly uses the `iex` shell to run commands. The shell can be invoked with the following command: ```elixir iex> ``` _/!\ This example has not been tested yet, and may not work_ ##### Modules in Elixir Elixir makes use of modules. They can be created like so: ```elixir defmodule Fibonacci do def fib(0), do: 0 def fib(1), do: 1 def fib(n), do: fib(n-2) + fib(n-1) end ``` _/!\ This example has not been tested yet, and may not work_ #### Other knowledge of the Elixir programming language 1. Elixir is a language by an unknown developer 2. Elixir is not a semicolon and curly bracket language, but it is a curly bracket language 3. Elixir uses the `*.ex` file extension by default, but also uses the `*.exs` file extension 4. The `*.ex` file extension can be confused with a Euphoria (another programming language) program. 5. Elixir is built upon the Erlang programming language 6. Several major programs and platforms make heavy use of Elixir, including Discord and Pinterest 7. Elixir is not one of the top 50 programming languages (as of 2022, July 31st, it has never ranked 50 or higher on the TIOBE index) 8. Elixir was first created in the year 2012 9. No other knowledge of the Elixir programming language #### Additional comments 1. I have not yet memorized the names of the developers 2. No other additional comments available *** ## File info **File type:** `Markdown document (*.md *.mkd *.mdown *.markdown)` **File version:** `1 (2022, Monday, August 1st at 5:24 pm PST)` **Line count (including blank lines and compiler line):** `149` *** ## File history

Click/tap here to expand/collapse the history for this file

Version 1 (2022, Monday, August 1st at 5:24 pm PST)

> Changes: > * Started the file > * Added the `title` section > * Added the `Hello World in Elixir` section > * Added the `Comments in Elixir` section > > * Added the `Single line comments` subsection > > * Added the `Multi-line comments` subsection > * Added the `break keyword in Elixir` section > * Added the `The IEX shell` section > * Added the `modules in Elixir` section > * Added the `other knowledge of the Elixir programming language` section > * Added the `Additional comments` section > * Added the `file info` section > * Added the `file history` section > * No other changes in version 1
***

近期下载者

相关文件


收藏者