diff --git a/_posts/2016-02-29-atom-to-string.markdown b/_posts/2016-02-29-atom-to-string.markdown index 84795a7..eb8a09f 100644 --- a/_posts/2016-02-29-atom-to-string.markdown +++ b/_posts/2016-02-29-atom-to-string.markdown @@ -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) diff --git a/_posts/2016-02-29-join-a-list-of-strings.markdown b/_posts/2016-02-29-join-a-list-of-strings.markdown index 111e60a..528acaa 100644 --- a/_posts/2016-02-29-join-a-list-of-strings.markdown +++ b/_posts/2016-02-29-join-a-list-of-strings.markdown @@ -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) diff --git a/_posts/2016-02-29-parse-string-to-float.markdown b/_posts/2016-02-29-parse-string-to-float.markdown index 9171eb1..2f104e5 100644 --- a/_posts/2016-02-29-parse-string-to-float.markdown +++ b/_posts/2016-02-29-parse-string-to-float.markdown @@ -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) diff --git a/_posts/2016-02-29-parse-string-to-integer.markdown b/_posts/2016-02-29-parse-string-to-integer.markdown index 58e7380..49b5dd5 100644 --- a/_posts/2016-02-29-parse-string-to-integer.markdown +++ b/_posts/2016-02-29-parse-string-to-integer.markdown @@ -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) diff --git a/_posts/2016-02-29-print-list.markdown b/_posts/2016-02-29-print-list.markdown index 0336daa..288439a 100644 --- a/_posts/2016-02-29-print-list.markdown +++ b/_posts/2016-02-29-print-list.markdown @@ -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) diff --git a/_posts/2016-02-29-print-map.markdown b/_posts/2016-02-29-print-map.markdown index e446916..f63a3f5 100644 --- a/_posts/2016-02-29-print-map.markdown +++ b/_posts/2016-02-29-print-map.markdown @@ -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) diff --git a/_posts/2016-02-29-replace-character-in-a-string.markdown b/_posts/2016-02-29-replace-character-in-a-string.markdown index 4d005b8..712481e 100644 --- a/_posts/2016-02-29-replace-character-in-a-string.markdown +++ b/_posts/2016-02-29-replace-character-in-a-string.markdown @@ -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) diff --git a/_posts/2016-02-29-split-a-string.markdown b/_posts/2016-02-29-split-a-string.markdown index e9ae516..e610fda 100644 --- a/_posts/2016-02-29-split-a-string.markdown +++ b/_posts/2016-02-29-split-a-string.markdown @@ -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) diff --git a/_posts/2016-03-01-case-statement.markdown b/_posts/2016-03-01-case-statement.markdown index 7ecae39..177a24b 100644 --- a/_posts/2016-03-01-case-statement.markdown +++ b/_posts/2016-03-01-case-statement.markdown @@ -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) diff --git a/_posts/2016-03-01-keyword-list-to-map.markdown b/_posts/2016-03-01-keyword-list-to-map.markdown index 3c24a1d..9a0607a 100644 --- a/_posts/2016-03-01-keyword-list-to-map.markdown +++ b/_posts/2016-03-01-keyword-list-to-map.markdown @@ -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) diff --git a/_posts/2016-03-01-length-of-list.markdown b/_posts/2016-03-01-length-of-list.markdown index 8f36f22..842c59c 100644 --- a/_posts/2016-03-01-length-of-list.markdown +++ b/_posts/2016-03-01-length-of-list.markdown @@ -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) diff --git a/_posts/2016-03-01-range-to-list.markdown b/_posts/2016-03-01-range-to-list.markdown index 6571873..5cc5e2e 100644 --- a/_posts/2016-03-01-range-to-list.markdown +++ b/_posts/2016-03-01-range-to-list.markdown @@ -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) diff --git a/_posts/2016-03-01-size-of-map.markdown b/_posts/2016-03-01-size-of-map.markdown index 53427fd..604a9f2 100644 --- a/_posts/2016-03-01-size-of-map.markdown +++ b/_posts/2016-03-01-size-of-map.markdown @@ -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) diff --git a/_posts/2016-03-01-size-of-tuple.markdown b/_posts/2016-03-01-size-of-tuple.markdown index 8368fab..ee1f8f8 100644 --- a/_posts/2016-03-01-size-of-tuple.markdown +++ b/_posts/2016-03-01-size-of-tuple.markdown @@ -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) diff --git a/_posts/2016-03-01-tuple-to-list.markdown b/_posts/2016-03-01-tuple-to-list.markdown index 8efc65e..a80459c 100644 --- a/_posts/2016-03-01-tuple-to-list.markdown +++ b/_posts/2016-03-01-tuple-to-list.markdown @@ -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) diff --git a/_posts/2016-03-02-anonymous-functions.markdown b/_posts/2016-03-02-anonymous-functions.markdown index ca574d6..8b427df 100644 --- a/_posts/2016-03-02-anonymous-functions.markdown +++ b/_posts/2016-03-02-anonymous-functions.markdown @@ -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) diff --git a/_posts/2016-03-02-if-statement.markdown b/_posts/2016-03-02-if-statement.markdown index cbd8ee4..ab2893f 100644 --- a/_posts/2016-03-02-if-statement.markdown +++ b/_posts/2016-03-02-if-statement.markdown @@ -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) diff --git a/_posts/2016-03-02-string-concatenation.markdown b/_posts/2016-03-02-string-concatenation.markdown index 7e005d3..1ed251d 100644 --- a/_posts/2016-03-02-string-concatenation.markdown +++ b/_posts/2016-03-02-string-concatenation.markdown @@ -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) diff --git a/_posts/2016-03-03-module-definition.markdown b/_posts/2016-03-03-module-definition.markdown index 4b2c594..2a704b2 100644 --- a/_posts/2016-03-03-module-definition.markdown +++ b/_posts/2016-03-03-module-definition.markdown @@ -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) diff --git a/_posts/2016-03-04-range-syntax.markdown b/_posts/2016-03-04-range-syntax.markdown index 1de11f1..030b0c1 100644 --- a/_posts/2016-03-04-range-syntax.markdown +++ b/_posts/2016-03-04-range-syntax.markdown @@ -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) diff --git a/_posts/2016-03-04-regex-basics.markdown b/_posts/2016-03-04-regex-basics.markdown index 4865e0e..f994270 100644 --- a/_posts/2016-03-04-regex-basics.markdown +++ b/_posts/2016-03-04-regex-basics.markdown @@ -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) diff --git a/_posts/2016-03-06-read-file-using-file-stream.markdown b/_posts/2016-03-06-read-file-using-file-stream.markdown index 41bc65d..1501b25 100644 --- a/_posts/2016-03-06-read-file-using-file-stream.markdown +++ b/_posts/2016-03-06-read-file-using-file-stream.markdown @@ -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) diff --git a/_posts/2016-03-06-string-ends-with.markdown b/_posts/2016-03-06-string-ends-with.markdown index c1bbc84..002c226 100644 --- a/_posts/2016-03-06-string-ends-with.markdown +++ b/_posts/2016-03-06-string-ends-with.markdown @@ -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) diff --git a/_posts/2016-03-06-string-get-first-character.markdown b/_posts/2016-03-06-string-get-first-character.markdown index 6250808..8d9b2ab 100644 --- a/_posts/2016-03-06-string-get-first-character.markdown +++ b/_posts/2016-03-06-string-get-first-character.markdown @@ -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) diff --git a/_posts/2016-03-06-string-to-lowercase.markdown b/_posts/2016-03-06-string-to-lowercase.markdown index 1164157..d9c4409 100644 --- a/_posts/2016-03-06-string-to-lowercase.markdown +++ b/_posts/2016-03-06-string-to-lowercase.markdown @@ -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) diff --git a/_posts/2016-03-06-string-to-uppercase.markdown b/_posts/2016-03-06-string-to-uppercase.markdown index 22ce4f6..d4ec56d 100644 --- a/_posts/2016-03-06-string-to-uppercase.markdown +++ b/_posts/2016-03-06-string-to-uppercase.markdown @@ -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) diff --git a/_posts/2016-03-08-string-to-list-of-characters.markdown b/_posts/2016-03-08-string-to-list-of-characters.markdown index 06236c0..1b1a434 100644 --- a/_posts/2016-03-08-string-to-list-of-characters.markdown +++ b/_posts/2016-03-08-string-to-list-of-characters.markdown @@ -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) diff --git a/_posts/2016-03-08-with-statement.markdown b/_posts/2016-03-08-with-statement.markdown index b3684ac..1fd82dc 100644 --- a/_posts/2016-03-08-with-statement.markdown +++ b/_posts/2016-03-08-with-statement.markdown @@ -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) diff --git a/_posts/2016-03-09-map-an-enumerable.markdown b/_posts/2016-03-09-map-an-enumerable.markdown index 94eb765..1e5a6c0 100644 --- a/_posts/2016-03-09-map-an-enumerable.markdown +++ b/_posts/2016-03-09-map-an-enumerable.markdown @@ -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) diff --git a/_posts/2016-03-10-last-item-in-a-list.markdown b/_posts/2016-03-10-last-item-in-a-list.markdown index 57e8e80..b624028 100644 --- a/_posts/2016-03-10-last-item-in-a-list.markdown +++ b/_posts/2016-03-10-last-item-in-a-list.markdown @@ -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) diff --git a/_posts/2016-03-14-write-a-string-to-a-file.markdown b/_posts/2016-03-14-write-a-string-to-a-file.markdown index 04c70db..ab9744c 100644 --- a/_posts/2016-03-14-write-a-string-to-a-file.markdown +++ b/_posts/2016-03-14-write-a-string-to-a-file.markdown @@ -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) diff --git a/_posts/2016-03-23-get-a-value-from-a-keyword-list.markdown b/_posts/2016-03-23-get-a-value-from-a-keyword-list.markdown index 22f9fa2..914ed88 100644 --- a/_posts/2016-03-23-get-a-value-from-a-keyword-list.markdown +++ b/_posts/2016-03-23-get-a-value-from-a-keyword-list.markdown @@ -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) diff --git a/_posts/2016-03-25-update-a-struct-field.markdown b/_posts/2016-03-25-update-a-struct-field.markdown index f86e79b..cce4bd4 100644 --- a/_posts/2016-03-25-update-a-struct-field.markdown +++ b/_posts/2016-03-25-update-a-struct-field.markdown @@ -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) diff --git a/_posts/2016-05-23-sum-an-enumerable.markdown b/_posts/2016-05-23-sum-an-enumerable.markdown index 4902c85..d3688f4 100644 --- a/_posts/2016-05-23-sum-an-enumerable.markdown +++ b/_posts/2016-05-23-sum-an-enumerable.markdown @@ -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) \ No newline at end of file +- [Enum.sum/1](https://hexdocs.pm/elixir/Enum.html#sum/1) +- [Enum.reduce/3](https://hexdocs.pm/elixir/Enum.html#reduce/3) \ No newline at end of file diff --git a/_posts/2016-10-28-get-a-nested-map-value.markdown b/_posts/2016-10-28-get-a-nested-map-value.markdown index ce71b99..9ae5626 100644 --- a/_posts/2016-10-28-get-a-nested-map-value.markdown +++ b/_posts/2016-10-28-get-a-nested-map-value.markdown @@ -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) \ No newline at end of file +- [Kernel.get_in/2](https://hexdocs.pm/elixir/Kernel.html#get_in/2) \ No newline at end of file