可空运算符用于处理数据库查询。它处理存储在表中代替数据的空值。
在左侧为空 | 可以为空 | 双方都可空 |
---|---|---|
?> | >? | ?>? |
?>= | >=? | ?>=? |
?<= | <=? | ?<=? |
?< | <? | ?lt:? |
?= | =? | ?=? |
?+ | +? | ?+? |
你可以对所有二进制算术和比较操作应用可为空的运算符。
F#运算符优先级
操作员 | 关联性 |
---|---|
as |
right |
when | right |
|(pipe) | left |
; | right |
let |
nonassociative |
功能, 乐趣, 比赛, 尝试 | nonassociative |
if | nonassociative |
-> |
right |
:= | right |
, | nonassociative |
或|| | left |
&, && | left |
:>; , :?>; | right |
!= on, <on, > on, =, | on, &on和&(包括<<<, >>>, |||, &&&) | left |
^ on(包括^^^) | right |
:: | right |
:? |
non associative |
-op, + op | 适用于这些符号的中缀使用 |
*开, /开, %开 | left |
** op |
right |
f x (function application) |
left |
| (模式匹配) | right |
前缀运算符(+开, -开, %, %%, &, && 、!开, 〜开) | left |
. | left |
f(x) |
left |
f< types> |
left |
评论前必须登录!
注册