diff options
author | Laoujin <woutervs@hotmail.com> | 2015-02-01 06:06:59 +0100 |
---|---|---|
committer | Laoujin <woutervs@hotmail.com> | 2015-02-01 06:06:59 +0100 |
commit | 564f1b20b8a858c928f672fb8285a923bd9ccd43 (patch) | |
tree | 71d6644ff7c832ec7899520bcd6554f83c1716a6 /elixir.html.markdown | |
parent | 8911f368de43ab33d0d5ac251551de1ee765727c (diff) | |
parent | a89fb278ae98b07510cc162454ca489a49768bfc (diff) |
Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docs
Diffstat (limited to 'elixir.html.markdown')
-rw-r--r-- | elixir.html.markdown | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/elixir.html.markdown b/elixir.html.markdown index 0a20e3df..fb5f183a 100644 --- a/elixir.html.markdown +++ b/elixir.html.markdown @@ -91,6 +91,11 @@ string. <<1,2,3>> <> <<4,5>> #=> <<1,2,3,4,5>> "hello " <> "world" #=> "hello world" +# Ranges are represented as `start..end` (both inclusive) +1..10 #=> 1..10 +lower..upper = 1..10 # Can use pattern matching on ranges as well +[lower, upper] #=> [1, 10] + ## --------------------------- ## -- Operators ## --------------------------- |