开发者

F# Custom Operators Precedence

In开发者_如何转开发 F#, you can define custom operators like

let (=~) input pattern = Regex.IsMatch(input, pattern)

Unlike Haskell, custom operators are defined without precedences. What are the operator precedences of the custom operators in F#?


Operator precedence is determined by the first character(s), according to a predefined table.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜