Elixir 操作符表

2023-12-14 16:33 更新
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

這些操作符中的大部分會在我們的教程中學習到。在下一章,我們將討論一些基本函數(shù),數(shù)據(jù)類型轉(zhuǎn)換和一點點控制流。


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號