Elixir Maps | Table O Contents
Place the introducing line of text ie.) the ‘tagline’ here …
Note. The Flammarion Logo Badge
in the page header above is an .svg
image file set to the dimensions of 5%
width, auto
height, and zoom
. Go ahead and test the zoom-out
feature by hovering over the badge to engage the expansion of the image from your desktop.
First Subtitle
Hint. Place the intro paragraph ie.) the ‘hypothesis’ here …
More to come …
Elixir Maps
From the iex
prompt or iex>
…
Type the command h
followed immediately by the name of the Module
associated with the concept of dictionaries
or Maps
in Elixir, as follows:
iex> h(Map)
;where the Module name of Map
in parenthesis returns the resident help
library or man
or manual
pages for the module Map
Map functions
iex> Map.get(x, :a)
Returns,
iex> 3
Elixir Maps
Strings as Keys in Elixir
Use the %
sign plus a set of curly braces { ... }
to create a data map
or dictionary
or simply a map
in Elixir as follows:
iex> x = %{ "a" => 3, "b" => 4 }
Note. The fat arrow
designates a key => value
pair within a map
.
;where the name
of the map is assigned to the variable placeholder x
Note. Dictionaries
in Python3
are called Maps
in Elixir.
Maps in Elixir
From the iex
prompt or iex>
…
Type the command h
followed immediately by the name of the Module
associated with the concept of dictionaries
or Maps
in Elixir, as follows:
iex> h(Map)
;where the Module name of Map
in parenthesis returns the resident help
library or man
or manual
pages for the module Map
Jekyll Server
Note. Detailed instructions on how to view this file locally using a Jekyll server are included in the accompanying Gemfile
for the project.
In short, type the following command statement from a Terminal window when set to the docs
subdirectory.
jekyll serve --watch --baseurl "" -o
Last Subtitle
More to come …
Note. The above synopsis was derived from an article written by Blank Author [1].
Support
Please support the co-workers who aggregate the Source Links for our projects.
Patreon
Like what you see in this project? If so, then support the authors and machine-elves
who aggregate the source links and pages for our projects via Patreon.