Ming-Tang
Ming-Tang

Reputation: 17651

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

Upvotes: 17

Views: 2280

Answers (1)

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

Upvotes: 23

Related Questions