$该语言中没有标准运算符.
你当然可以定义它.您链接的示例使用此定义:
let ($) (DF a) (DF b) = DF (fun ctx ->
a(ctx)
b(ctx) )
Run Code Online (Sandbox Code Playgroud)
其中DF通过定义:
type Drawing3D = DF of (Drawing3DContext -> unit)
Run Code Online (Sandbox Code Playgroud)
此外,$在更复杂的运算符名称中使用符号也存在特殊限制,例如:
let (<$>) f x = List.map f x
Run Code Online (Sandbox Code Playgroud)
将导致编译器错误.
错误FS0035:不推荐使用此结构:'$'不允许作为运算符名称中的字符,并保留供将来使用