Elixir 操作符表
OPERATOR ASSOCIATIVITY
@ Unary
. Left to right
+ - ! ^ not ~~~ Unary
* / Left to right
+ - Left to right
++ -- .. <> Right to left
in Left to right
|> <<< >>> ~>> <<~ ~> <~ <~> <|> Left to right
< > <= >= Left to right
== != =~ === !== Left to right
&& &&& and Left to right
|| ||| or Left to right
= Right to left
=> Right to left
| Right to left
:: Right to left
when Right to left
<-, \\ Left to right
& Unary
这些操作符中的大部分会在我们的教程中学习到。在下一章,我们将讨论一些基本函数,数据类型转换和一点点控制流。