RIP
Tutorial
Tags
Topics
Examples
eBooks
Download Elixir Language (PDF)
Elixir Language
Getting started with Elixir Language
Awesome Book
Awesome Community
Awesome Course
Awesome Tutorial
Awesome YouTube
Basic .gitignore for elixir program
Basic .gitignore for elixir program
basic use of guard clauses
BEAM
Behaviours
Better debugging with IO.inspect and labels
Built-in types
Conditionals
Constants
Data Structures
Debugging Tips
Doctests
Ecto
Erlang
ExDoc
ExUnit
Functional programming in Elixir
Functions
Getting help in IEx console
IEx Console Tips & Tricks
Installation
Join Strings
Lists
Char Lists
Cons Cells
Converting Lists to a Map
Keyword Lists
List Comprehensions
List difference
List Membership
Mapping Lists
Maps and Keyword Lists
Metaprogramming
Mix
Modules
Nodes
Operators
Optimization
Pattern matching
Polymorphism in Elixir
Processes
Protocols
Sigils
State Handling in Elixir
Stream
Strings
Task
Tips and Tricks
Elixir Language
Getting started with Elixir Language
Awesome Book
Awesome Community
Awesome Course
Awesome Tutorial
Awesome YouTube
Basic .gitignore for elixir program
Basic .gitignore for elixir program
basic use of guard clauses
BEAM
Behaviours
Better debugging with IO.inspect and labels
Built-in types
Conditionals
Constants
Data Structures
Debugging Tips
Doctests
Ecto
Erlang
ExDoc
ExUnit
Functional programming in Elixir
Functions
Getting help in IEx console
IEx Console Tips & Tricks
Installation
Join Strings
Lists
Char Lists
Cons Cells
Converting Lists to a Map
Keyword Lists
List Comprehensions
List difference
List Membership
Mapping Lists
Maps and Keyword Lists
Metaprogramming
Mix
Modules
Nodes
Operators
Optimization
Pattern matching
Polymorphism in Elixir
Processes
Protocols
Sigils
State Handling in Elixir
Stream
Strings
Task
Tips and Tricks
Elixir Language
Lists
Syntax
[]
[1, 2, 3, 4]
[1, 2] ++ [3, 4] # -> [1,2,3,4]
hd([1, 2, 3, 4]) # -> 1
tl([1, 2, 3, 4]) # -> [2,3,4]
[head | tail]
[1 | [2, 3, 4]] # -> [1,2,3,4]
[1 | [2 | [3 | [4 | []]]]] -> [1,2,3,4]
'hello' = [?h, ?e, ?l, ?l, ?o]
keyword_list = [a: 123, b: 456, c: 789]
keyword_list[:a] # -> 123
Lists Related Examples
Char Lists
Cons Cells
Converting Lists to a Map
Keyword Lists
List Comprehensions
List difference
List Membership
Mapping Lists
PDF
- Download
Elixir Language
for free
Previous
Next
This modified text is an extract of the original
Stack Overflow Documentation
created by following
contributors
and released under
CC BY-SA 3.0
This website is not affiliated with
Stack Overflow