diff options
author | Elena Bolshakova <lena-san@yandex-team.ru> | 2015-06-10 11:34:14 +0300 |
---|---|---|
committer | Elena Bolshakova <lena-san@yandex-team.ru> | 2015-06-10 11:34:14 +0300 |
commit | 193f66553fc114e83e7c4cfb4607e4a1b57c4f09 (patch) | |
tree | 30988e25d31ed6dff83cf409ad093c3c7ec9322c /elixir.html.markdown | |
parent | 676568cca8731d0dbb2d2bdeff08cc092d283177 (diff) | |
parent | 5086480a04d27cff2380f04609210082000538d4 (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 ## --------------------------- |