Operators.( ~- )<^T> 函数 (F#)

重载一元求反。

命名空间/模块路径: Microsoft.FSharp.Core.Operators

程序集:FSharp.Core(在 FSharp.Core.dll 中)

// Signature:
( ~- ) : ^T -> ^T (requires ^T with static member op_UnaryNegation)

// Usage:
- n

参数

  • n
    类型:^T

    要求反的值。

返回值

操作的结果。

平台

Windows 8,Windows 7,Windows server 2012中,Windows server 2008 R2

版本信息

F#核心库版本

支持:2.0,4.0,可移植

请参见

参考

Core.Operators 模块 (F#)

Microsoft.FSharp.Core 命名空间 (F#)