F# Custom Operators Precedence

后端 未结 1 1102
余生分开走
余生分开走 2021-02-19 03:16

In F#, you can define custom operators like

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

Unlike Haskell, custom operators are defined

相关标签:
1条回答
  • 2021-02-19 03:58

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

    0 讨论(0)
提交回复
热议问题