Welcome to mirror list, hosted at ThFree Co, Russian Federation.

OperatorGlobalLevel.fs « mdoc.Test.FSharp « mdoc.Test « mdoc - github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 33b9f9a9187dd7572d693a1c5dff32e35a51bc91 (plain)
1
2
3
4
5
6
7
8
9
module OperatorGlobalLevel

// You can also define operators at the global level. 
// The following code defines an operator +?.
let inline (+?) (x: int) (y: int) = x + 2*y

let i = (+?)

printf "%d" (10 +? 1)