File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
lib/elixir/pages/references Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ Operator | Associativity
2121` * ` ` / ` | Left
2222` + ` ` - ` | Left
2323` ++ ` ` -- ` ` +++ ` ` --- ` ` .. ` ` <> ` | Right
24+ ` // ` (valid only inside ` ..// ` ) | Right
2425` in ` ` not in ` | Left
2526` \|> ` ` <<< ` ` >>> ` ` <<~ ` ` ~>> ` ` <~ ` ` ~> ` ` <~> ` | Left
2627` < ` ` > ` ` <= ` ` >= ` | Left
@@ -29,11 +30,18 @@ Operator | Associativity
2930` \|\| ` ` \|\|\| ` ` or ` | Left
3031` = ` | Right
3132` & ` , ` ... ` | Unary
32- ` => ` (valid only inside ` %{} ` ) | Right
3333` \| ` | Right
3434` :: ` | Right
3535` when ` | Right
3636` <- ` ` \\ ` | Left
37+ ` => ` (valid only inside ` %{} ` ) | None
38+
39+ Elixir also has two ternary operators:
40+
41+ Operator | Associativity
42+ ---------------------------------------------- | -------------
43+ ` first..last//step ` | Right
44+ ` %{map \| key => value, ...} ` | None
3745
3846## General operators
3947
You can’t perform that action at this time.
0 commit comments