We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4c5c06 commit 40163abCopy full SHA for 40163ab
1 file changed
lib/elixir/pages/references/operators.md
@@ -21,6 +21,7 @@ Operator | Associativity
21
`*` `/` | Left
22
`+` `-` | Left
23
`++` `--` `+++` `---` `..` `<>` | Right
24
+`//` (valid only inside `..//`) | Right
25
`in` `not in` | Left
26
`\|>` `<<<` `>>>` `<<~` `~>>` `<~` `~>` `<~>` | Left
27
`<` `>` `<=` `>=` | Left
@@ -29,11 +30,18 @@ Operator | Associativity
29
30
`\|\|` `\|\|\|` `or` | Left
31
`=` | Right
32
`&`, `...` | Unary
-`=>` (valid only inside `%{}`) | Right
33
`\|` | Right
34
`::` | Right
35
`when` | Right
36
`<-` `\\` | Left
37
+`=>` (valid only inside `%{}`) | None
38
+
39
+Elixir also has two ternary operators:
40
41
+Operator
42
+------------------------------
43
+`first..last//step`
44
+`%{map | key => value, ...}`
45
46
## General operators
47
0 commit comments