开发者

F# Custom Operators Precedence

开发者 https://www.devze.com 2023-01-09 16:06 出处:网络
In开发者_如何转开发 F#, you can define custom operators like let (=~) input pattern = Regex.IsMatch(input, pattern)

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

精彩评论

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

关注公众号