F# Custom Operators Precedence

痴心易碎 提交于 2019-12-05 14:54:55

问题


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#?


回答1:


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



来源:https://stackoverflow.com/questions/3347972/f-custom-operators-precedence

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!