Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _posts/2016-02-29-atom-to-string.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Convert an atom to a string
"hello" = Atom.to_string(:hello)
{% endhighlight %}

Documentation: [Atom.to_string/1](http://elixir-lang.org/docs/stable/elixir/Atom.html#to_string/1)
Documentation: [Atom.to_string/1](https://hexdocs.pm/elixir/Atom.html#to_string/1)
2 changes: 1 addition & 1 deletion _posts/2016-02-29-join-a-list-of-strings.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Join a list of strings
"1,2,3" = Enum.join(["1","2","3"], ",")
{% endhighlight %}

Documentation: [Enum.join/2](http://elixir-lang.org/docs/stable/elixir/Enum.html#join/2)
Documentation: [Enum.join/2](https://hexdocs.pm/elixir/Enum.html#join/2)
2 changes: 1 addition & 1 deletion _posts/2016-02-29-parse-string-to-float.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Parse string to float
{3.14, ""} = Float.parse("3.14")
{% endhighlight %}

Documentation: [Float.parse/1](http://elixir-lang.org/docs/stable/elixir/Float.html#parse/1)
Documentation: [Float.parse/1](https://hexdocs.pm/elixir/Float.html#parse/1)
2 changes: 1 addition & 1 deletion _posts/2016-02-29-parse-string-to-integer.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Parse string to integer
{4, ""} = Integer.parse("4")
{% endhighlight %}

Documentation: [Integer.parse/2](http://elixir-lang.org/docs/stable/elixir/Integer.html#parse/2)
Documentation: [Integer.parse/2](https://hexdocs.pm/elixir/Integer.html#parse/2)
2 changes: 1 addition & 1 deletion _posts/2016-02-29-print-list.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Prints a list
# prints "[1, 2, 3]"
{% endhighlight %}

Related Documentation: [Inspect Protocol](http://elixir-lang.org/docs/stable/elixir/Inspect.html)
Related Documentation: [Inspect Protocol](https://hexdocs.pm/elixir/Inspect.html)
2 changes: 1 addition & 1 deletion _posts/2016-02-29-print-map.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Prints a map
# prints "%{key: 42}"
{% endhighlight %}

Related Documentation: [Inspect Protocol](http://elixir-lang.org/docs/stable/elixir/Inspect.html)
Related Documentation: [Inspect Protocol](https://hexdocs.pm/elixir/Inspect.html)
2 changes: 1 addition & 1 deletion _posts/2016-02-29-replace-character-in-a-string.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Replace character in a string
"123" = String.replace("1.2.3", ".", "")
{% endhighlight %}

Documentation: [String.replace/4](http://elixir-lang.org/docs/stable/elixir/String.html#replace/4)
Documentation: [String.replace/4](https://hexdocs.pm/elixir/String.html#replace/4)
4 changes: 2 additions & 2 deletions _posts/2016-02-29-split-a-string.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ This example shows how to split a string on whitespace or split on a string.

Documentation:

- [String.split/3](http://elixir-lang.org/docs/stable/elixir/String.html#split/3)
- [String.split/1](http://elixir-lang.org/docs/stable/elixir/String.html#split/1)
- [String.split/3](https://hexdocs.pm/elixir/String.html#split/3)
- [String.split/1](https://hexdocs.pm/elixir/String.html#split/1)
2 changes: 1 addition & 1 deletion _posts/2016-03-01-case-statement.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Case statement (similar to switch in other languages)
end
{% endhighlight %}

Documentation: [Kernel.SpecialForms.case/2](http://elixir-lang.org/docs/stable/elixir/Kernel.SpecialForms.html#case/2)
Documentation: [Kernel.SpecialForms.case/2](https://hexdocs.pm/elixir/Kernel.SpecialForms.html#case/2)
2 changes: 1 addition & 1 deletion _posts/2016-03-01-keyword-list-to-map.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Keyword list to map
%{a: 1, b: 2, c: 3} = Enum.into( [a: 1, b: 2, c: 3], %{} )
{% endhighlight %}

Documentation: [Enum.into/2](http://elixir-lang.org/docs/stable/elixir/Enum.html#into/2)
Documentation: [Enum.into/2](https://hexdocs.pm/elixir/Enum.html#into/2)
2 changes: 1 addition & 1 deletion _posts/2016-03-01-length-of-list.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Length of list
3 = length([1, 2, 3])
{% endhighlight %}

Documentation: [Kernel.length/1](http://elixir-lang.org/docs/stable/elixir/Kernel.html#length/1)
Documentation: [Kernel.length/1](https://hexdocs.pm/elixir/Kernel.html#length/1)
2 changes: 1 addition & 1 deletion _posts/2016-03-01-range-to-list.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Range to list
[1, 2, 3, 4] = Enum.to_list( 1..4 )
{% endhighlight %}

Documentation: [Enum.to_list/1](http://elixir-lang.org/docs/stable/elixir/Enum.html#to_list/1)
Documentation: [Enum.to_list/1](https://hexdocs.pm/elixir/Enum.html#to_list/1)
2 changes: 1 addition & 1 deletion _posts/2016-03-01-size-of-map.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Get the size/length of a map
1 = map_size(%{a: 1})
{% endhighlight %}

Documentation: [Kernel.map_size/1](http://elixir-lang.org/docs/stable/elixir/Kernel.html#map_size/1)
Documentation: [Kernel.map_size/1](https://hexdocs.pm/elixir/Kernel.html#map_size/1)
2 changes: 1 addition & 1 deletion _posts/2016-03-01-size-of-tuple.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Get the size/length of a tuple
3 = tuple_size({1, 2, 3})
{% endhighlight %}

Documentation: [Kernel.tuple_size/1](http://elixir-lang.org/docs/stable/elixir/Kernel.html#tuple_size/1)
Documentation: [Kernel.tuple_size/1](https://hexdocs.pm/elixir/Kernel.html#tuple_size/1)
2 changes: 1 addition & 1 deletion _posts/2016-03-01-tuple-to-list.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Tuple to list
[:a, :b, :c] = Tuple.to_list({:a, :b, :c})
{% endhighlight %}

Documentation: [Tuple.to_list/1](http://elixir-lang.org/docs/stable/elixir/Tuple.html#to_list/1)
Documentation: [Tuple.to_list/1](https://hexdocs.pm/elixir/Tuple.html#to_list/1)
2 changes: 1 addition & 1 deletion _posts/2016-03-02-anonymous-functions.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ square = &( &1 * &1 )
four = &(2 + 2)
{% endhighlight %}

Documentation [Capture operator](http://elixir-lang.org/docs/stable/elixir/Kernel.SpecialForms.html#&/1)
Documentation [Capture operator](https://hexdocs.pm/elixir/Kernel.SpecialForms.html#&/1)
2 changes: 1 addition & 1 deletion _posts/2016-03-02-if-statement.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ nil = if false do
"else" = if false, do: "good", else: "else"
{% endhighlight %}

Documentation: [Kernel.if/2](http://elixir-lang.org/docs/stable/elixir/Kernel.html#if/2)
Documentation: [Kernel.if/2](https://hexdocs.pm/elixir/Kernel.html#if/2)

See Also: [unless](/examples/unless-statement)
2 changes: 1 addition & 1 deletion _posts/2016-03-02-string-concatenation.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Concatenate strings
"Hello World" = "Hello" <> " " <> "World"
{% endhighlight %}

Documentation: [Kernel.<>/2](http://elixir-lang.org/docs/stable/elixir/Kernel.html#%3C%3E/2)
Documentation: [Kernel.<>/2](https://hexdocs.pm/elixir/Kernel.html#%3C%3E/2)
2 changes: 1 addition & 1 deletion _posts/2016-03-03-module-definition.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ end
Documentation:

- [Modules Guide](http://elixir-lang.org/getting-started/modules.html)
- [Kernel.defmodule/2](http://elixir-lang.org/docs/stable/elixir/Kernel.html#defmodule/2)
- [Kernel.defmodule/2](https://hexdocs.pm/elixir/Kernel.html#defmodule/2)
2 changes: 1 addition & 1 deletion _posts/2016-03-04-range-syntax.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ This example shows the literal syntax used to create a range.
4..1
{% endhighlight %}

Documentation: [Range](http://elixir-lang.org/docs/stable/elixir/Range.html)
Documentation: [Range](https://hexdocs.pm/elixir/Range.html)
2 changes: 1 addition & 1 deletion _posts/2016-03-04-regex-basics.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ true = Regex.match?( ~r/foo/ , "Hello foo")
{% endhighlight %}


Documentation: [Regex](http://elixir-lang.org/docs/stable/elixir/Regex.html)
Documentation: [Regex](https://hexdocs.pm/elixir/Regex.html)
2 changes: 1 addition & 1 deletion _posts/2016-03-06-read-file-using-file-stream.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Enum.each(stream, fn(x) -> IO.puts x end)
2 = Enum.reduce(stream, 0, fn(x, acc) -> acc + 1 end)
{% endhighlight %}

See documentation for more information: [File.stream!/3](http://elixir-lang.org/docs/stable/elixir/File.html#stream!/3)
See documentation for more information: [File.stream!/3](https://hexdocs.pm/elixir/File.html#stream!/3)
2 changes: 1 addition & 1 deletion _posts/2016-03-06-string-ends-with.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ true = String.ends_with?("Period.", [".","?"])
false = String.ends_with?(" !", [".","?"])
{% endhighlight %}

Documentation: [String.ends_with?/2](http://elixir-lang.org/docs/stable/elixir/String.html#ends_with?/2)
Documentation: [String.ends_with?/2](https://hexdocs.pm/elixir/String.html#ends_with?/2)
2 changes: 1 addition & 1 deletion _posts/2016-03-06-string-get-first-character.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ This example shows how to get the first character in a string.
"H" = String.at("Hello",0)
{% endhighlight %}

Documentation: [String.at/2](http://elixir-lang.org/docs/stable/elixir/String.html#at/2)
Documentation: [String.at/2](https://hexdocs.pm/elixir/String.html#at/2)
2 changes: 1 addition & 1 deletion _posts/2016-03-06-string-to-lowercase.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ This example shows how to lowercase every letter in a string.
"hello world!" = String.downcase("Hello World!")
{% endhighlight %}

Documentation: [String.downcase/1](http://elixir-lang.org/docs/stable/elixir/String.html#downcase/1)
Documentation: [String.downcase/1](https://hexdocs.pm/elixir/String.html#downcase/1)
2 changes: 1 addition & 1 deletion _posts/2016-03-06-string-to-uppercase.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ This example shows how to uppercase every letter in a string.
"HELLO WORLD!" = String.upcase("Hello World!")
{% endhighlight %}

Documentation: [String.upcase/1](http://elixir-lang.org/docs/stable/elixir/String.html#upcase/1)
Documentation: [String.upcase/1](https://hexdocs.pm/elixir/String.html#upcase/1)
2 changes: 1 addition & 1 deletion _posts/2016-03-08-string-to-list-of-characters.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Elixir calls each character a grapheme so we use the `String.graphemes/1` method

{% endhighlight %}

Documentation: [String.graphemes/1](http://elixir-lang.org/docs/stable/elixir/String.html#graphemes/1)
Documentation: [String.graphemes/1](https://hexdocs.pm/elixir/String.html#graphemes/1)
2 changes: 1 addition & 1 deletion _posts/2016-03-08-with-statement.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ The special form `with` is used to chain a sequence of matches in order and fina
{% endhighlight %}


Documentation: [Kernel.SpecialForms.with/1](http://elixir-lang.org/docs/stable/elixir/Kernel.SpecialForms.html#with/1)
Documentation: [Kernel.SpecialForms.with/1](https://hexdocs.pm/elixir/Kernel.SpecialForms.html#with/1)
2 changes: 1 addition & 1 deletion _posts/2016-03-09-map-an-enumerable.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ The `map` function enumerates an enumerable while applying a transform function

{% endhighlight %}

Documentation: [Enum.map/2](http://elixir-lang.org/docs/stable/elixir/Enum.html#map/2)
Documentation: [Enum.map/2](https://hexdocs.pm/elixir/Enum.html#map/2)
2 changes: 1 addition & 1 deletion _posts/2016-03-10-last-item-in-a-list.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ nil = List.last([])

{% endhighlight %}

Documentation: [List.last/1](http://elixir-lang.org/docs/stable/elixir/List.html#last/1)
Documentation: [List.last/1](https://hexdocs.pm/elixir/List.html#last/1)
2 changes: 1 addition & 1 deletion _posts/2016-03-14-write-a-string-to-a-file.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ This example shows how to write to a file using `File.write`.
:ok = File.write!("example2.txt","Hello File!")
{% endhighlight %}

Documentation: [File.write/3](http://elixir-lang.org/docs/stable/elixir/File.html#write/3)
Documentation: [File.write/3](https://hexdocs.pm/elixir/File.html#write/3)
2 changes: 1 addition & 1 deletion _posts/2016-03-23-get-a-value-from-a-keyword-list.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ nil = Keyword.get([a: 1, b: 2, a: 3], :c)

{% endhighlight %}

Documentation: [Keyword](http://elixir-lang.org/docs/stable/elixir/Keyword.html)
Documentation: [Keyword](https://hexdocs.pm/elixir/Keyword.html)
2 changes: 1 addition & 1 deletion _posts/2016-03-25-update-a-struct-field.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ end
Documentation:

- [Structs](http://elixir-lang.org/getting-started/structs.html)
- [Kernel.struct/2](http://elixir-lang.org/docs/stable/elixir/Kernel.html#struct/2)
- [Kernel.struct/2](https://hexdocs.pm/elixir/Kernel.html#struct/2)
4 changes: 2 additions & 2 deletions _posts/2016-05-23-sum-an-enumerable.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ This example shows how to sum a list, map, range, or other enumerable to calcula

Documentation:

- [Enum.sum/1](http://elixir-lang.org/docs/stable/elixir/Enum.html#sum/1)
- [Enum.reduce/3](http://elixir-lang.org/docs/stable/elixir/Enum.html#reduce/3)
- [Enum.sum/1](https://hexdocs.pm/elixir/Enum.html#sum/1)
- [Enum.reduce/3](https://hexdocs.pm/elixir/Enum.html#reduce/3)
2 changes: 1 addition & 1 deletion _posts/2016-10-28-get-a-nested-map-value.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ nil = get_in(nested, [:one, :three])

Documentation:

- [Kernel.get_in/2](http://elixir-lang.org/docs/stable/elixir/Kernel.html#get_in/2)
- [Kernel.get_in/2](https://hexdocs.pm/elixir/Kernel.html#get_in/2)