LanguagePrimitives (FSharp.Core)
A compiler intrinsic that implements dynamic invocations to the '+' operator.
A compiler intrinsic that implements dynamic invocations to the '+' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations to the '&&&' operator.
A compiler intrinsic that implements dynamic invocations to the '&&&' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations to the '|||' operator.
A compiler intrinsic that implements dynamic invocations to the '|||' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
Creates a byte value with units-of-measure
Creates a byte value with units-of-measure
-
input
:
byte -
The input byte.
-
Returns:
byte<'Measure> -
The byte with units-of-measure.
A compiler intrinsic that implements dynamic invocations to the checked '+' operator.
A compiler intrinsic that implements dynamic invocations to the checked '+' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations related to checked conversion operators.
A compiler intrinsic that implements dynamic invocations related to checked conversion operators.
-
value
:
'T
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations to the checked '*' operator.
A compiler intrinsic that implements dynamic invocations to the checked '*' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations to the checked '-' operator.
A compiler intrinsic that implements dynamic invocations to the checked '-' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations to the checked unary '-' operator.
A compiler intrinsic that implements dynamic invocations to the checked unary '-' operator.
-
value
:
'T
-
Returns:
'U
Creates a decimal value with units-of-measure
Creates a decimal value with units-of-measure
-
input
:
decimal -
The input decimal.
-
Returns:
decimal<'Measure> -
The decimal with units of measure.
Divides a value by an integer.
Divides a value by an integer.
-
x
:
^T -
The input value.
-
y
:
int -
The input int.
-
Returns:
^T -
The division result.
A compiler intrinsic that implements dynamic invocations for the DivideByInt primitive.
A compiler intrinsic that implements dynamic invocations for the DivideByInt primitive.
-
x
:
'T -
y
:
int
-
Returns:
'T
A compiler intrinsic that implements dynamic invocations to the '/' operator.
A compiler intrinsic that implements dynamic invocations to the '/' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
Build an enum value from an underlying value
Build an enum value from an underlying value
-
value
:
'T -
The input value.
-
Returns:
'Enum -
The value as an enumeration.
Get the underlying value for an enum value
Get the underlying value for an enum value
-
enum
:
'Enum -
The input enum.
-
Returns:
'T -
The enumeration as a value.
A compiler intrinsic that implements dynamic invocations related to the '=' operator.
A compiler intrinsic that implements dynamic invocations related to the '=' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations related to the '^^^' operator.
A compiler intrinsic that implements dynamic invocations related to the '^^^' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations related to conversion operators.
A compiler intrinsic that implements dynamic invocations related to conversion operators.
-
value
:
'T
-
Returns:
'U
Make an F# comparer object for the given type
Make an F# comparer object for the given type
-
Returns:
IComparer<'T>
Make an F# comparer object for the given type
Make an F# comparer object for the given type
-
Returns:
IComparer<'T>
Make an F# hash/equality object for the given type
Make an F# hash/equality object for the given type
-
Returns:
IEqualityComparer<'T>
Make an F# hash/equality object for the given type
Make an F# hash/equality object for the given type
-
Returns:
IEqualityComparer<'T>
Make an F# hash/equality object for the given type using node-limited hashing when hashing F#
records, lists and union types.
Make an F# hash/equality object for the given type using node-limited hashing when hashing F# records, lists and union types.
-
limit
:
int -
The input limit on the number of nodes.
-
Returns:
IEqualityComparer<'T> -
System.Collections.Generic.IEqualityComparer<'T>
Creates a float32 value with units-of-measure
Creates a float32 value with units-of-measure
-
input
:
float32 -
The input float.
-
Returns:
float32<'Measure> -
The float with units-of-measure.
Creates a float value with units-of-measure
Creates a float value with units-of-measure
-
input
:
float -
The input float.
-
Returns:
float<'Measure> -
The float with units-of-measure.
A static F# comparer object
A static F# comparer object
-
Returns:
IComparer
Compare two values. May be called as a recursive case from an implementation of System.IComparable to
ensure consistent NaN comparison semantics.
Compare two values. May be called as a recursive case from an implementation of System.IComparable to ensure consistent NaN comparison semantics.
-
comp
:
IComparer -
The function to compare the values.
-
e1
:
'T -
The first value.
-
e2
:
'T -
The second value.
-
Returns:
int -
The result of the comparison.
Compare two values for equality using partial equivalence relation semantics ([nan] <> [nan])
Compare two values for equality using partial equivalence relation semantics ([nan] <> [nan])
-
e1
:
'T -
The first value.
-
e2
:
'T -
The second value.
-
Returns:
bool -
The result of the comparison.
Return an F# comparer object suitable for hashing and equality. This hashing behaviour
of the returned comparer is not limited by an overall node count when hashing F#
records, lists and union types.
Return an F# comparer object suitable for hashing and equality. This hashing behaviour of the returned comparer is not limited by an overall node count when hashing F# records, lists and union types.
-
Returns:
IEqualityComparer
Compare two values for equality using equivalence relation semantics ([nan] = [nan])
Compare two values for equality using equivalence relation semantics ([nan] = [nan])
-
e1
:
'T -
The first value.
-
e2
:
'T -
The second value.
-
Returns:
bool -
The result of the comparison.
Return an F# comparer object suitable for hashing and equality. This hashing behaviour
of the returned comparer is not limited by an overall node count when hashing F#
records, lists and union types. This equality comparer has equivalence
relation semantics ([nan] = [nan]).
Return an F# comparer object suitable for hashing and equality. This hashing behaviour of the returned comparer is not limited by an overall node count when hashing F# records, lists and union types. This equality comparer has equivalence relation semantics ([nan] = [nan]).
-
Returns:
IEqualityComparer
Compare two values for equality
Compare two values for equality
-
comp
:
IEqualityComparer -
e1
:
'T -
The first value.
-
e2
:
'T -
The second value.
-
Returns:
bool -
The result of the comparison.
Hash a value according to its structure. This hash is not limited by an overall node count when hashing F#
records, lists and union types.
Hash a value according to its structure. This hash is not limited by an overall node count when hashing F# records, lists and union types.
-
obj
:
'T -
The input object.
-
Returns:
int -
The hashed value.
Recursively hash a part of a value according to its structure.
Recursively hash a part of a value according to its structure.
-
comparer
:
IEqualityComparer -
The comparison function.
-
obj
:
'T -
The input object.
-
Returns:
int -
The hashed value.
Hash a value according to its structure. Use the given limit to restrict the hash when hashing F#
records, lists and union types.
Hash a value according to its structure. Use the given limit to restrict the hash when hashing F# records, lists and union types.
-
limit
:
int -
The limit on the number of nodes.
-
obj
:
'T -
The input object.
-
Returns:
int -
The hashed value.
Take the maximum of two values structurally according to the order given by GenericComparison
Take the maximum of two values structurally according to the order given by GenericComparison
-
e1
:
'T -
The first value.
-
e2
:
'T -
The second value.
-
Returns:
'T -
The maximum value.
Take the minimum of two values structurally according to the order given by GenericComparison
Take the minimum of two values structurally according to the order given by GenericComparison
-
e1
:
'T -
The first value.
-
e2
:
'T -
The second value.
-
Returns:
'T -
The minimum value.
Resolves to the value 'one' for any primitive numeric type or any type with a static member called 'One'
Resolves to the value 'one' for any primitive numeric type or any type with a static member called 'One'
-
Returns:
^T
Resolves to the value 'one' for any primitive numeric type or any type with a static member called 'One'.
Resolves to the value 'one' for any primitive numeric type or any type with a static member called 'One'.
-
()
:
unit
-
Returns:
'T
Resolves to the zero value for any primitive numeric type or any type with a static member called 'Zero'
Resolves to the zero value for any primitive numeric type or any type with a static member called 'Zero'
-
Returns:
^T
Resolves to the zero value for any primitive numeric type or any type with a static member called 'Zero'.
Resolves to the zero value for any primitive numeric type or any type with a static member called 'Zero'.
-
()
:
unit
-
Returns:
'T
A compiler intrinsic that implements dynamic invocations related to the '>' operator.
A compiler intrinsic that implements dynamic invocations related to the '>' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations related to the '>=' operator.
A compiler intrinsic that implements dynamic invocations related to the '>=' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations related to the '=' operator.
A compiler intrinsic that implements dynamic invocations related to the '=' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
Creates an int16 value with units-of-measure
Creates an int16 value with units-of-measure
-
input
:
int16 -
The input int16.
-
Returns:
int16<'Measure> -
The int16 with units-of-measure.
Creates an int32 value with units-of-measure
Creates an int32 value with units-of-measure
-
input
:
int -
The input int.
-
Returns:
int<'Measure> -
The int with units of measure.
Creates an int64 value with units-of-measure
Creates an int64 value with units-of-measure
-
input
:
int64 -
The input int64.
-
Returns:
int64<'Measure> -
The int64 with units of measure.
Creates a nativeint value with units-of-measure
Creates a nativeint value with units-of-measure
-
input
:
nativeint -
The input nativeint.
-
Returns:
nativeint<'Measure> -
The nativeint with units-of-measure.
A compiler intrinsic that implements dynamic invocations to the '<<<' operator.
A compiler intrinsic that implements dynamic invocations to the '<<<' operator.
-
value
:
'T1 -
shift
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations related to the '<' operator.
A compiler intrinsic that implements dynamic invocations related to the '<' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations related to the '<=' operator.
A compiler intrinsic that implements dynamic invocations related to the '<=' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations related to the '~~~' operator.
A compiler intrinsic that implements dynamic invocations related to the '~~~' operator.
-
value
:
'T
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations to the '%' operator.
A compiler intrinsic that implements dynamic invocations to the '%' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
A compiler intrinsic that implements dynamic invocations to the '*' operator.
A compiler intrinsic that implements dynamic invocations to the '*' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
Parse an int32 according to the rules used by the overloaded 'int32' conversion operator when applied to strings
Parse an int32 according to the rules used by the overloaded 'int32' conversion operator when applied to strings
-
s
:
string -
The input string.
-
Returns:
int32 -
The parsed value.
Parse an int64 according to the rules used by the overloaded 'int64' conversion operator when applied to strings
Parse an int64 according to the rules used by the overloaded 'int64' conversion operator when applied to strings
-
s
:
string -
The input string.
-
Returns:
int64 -
The parsed value.
Parse an uint32 according to the rules used by the overloaded 'uint32' conversion operator when applied to strings
Parse an uint32 according to the rules used by the overloaded 'uint32' conversion operator when applied to strings
-
s
:
string -
The input string.
-
Returns:
uint32 -
The parsed value.
Parse an uint64 according to the rules used by the overloaded 'uint64' conversion operator when applied to strings
Parse an uint64 according to the rules used by the overloaded 'uint64' conversion operator when applied to strings
-
s
:
string -
The input string.
-
Returns:
uint64 -
The parsed value.
Reference/physical equality.
True if the inputs are reference-equal, false otherwise.
Reference/physical equality. True if the inputs are reference-equal, false otherwise.
-
e1
:
'T -
The first value.
-
e2
:
'T -
The second value.
-
Returns:
bool -
The result of the comparison.
The physical hash. Hashes on the object identity.
The physical hash. Hashes on the object identity.
-
obj
:
'T -
The input object.
-
Returns:
int -
The hashed value.
A compiler intrinsic that implements dynamic invocations to the '>>>' operator.
A compiler intrinsic that implements dynamic invocations to the '>>>' operator.
-
value
:
'T1 -
shift
:
'T2
-
Returns:
'U
Creates an sbyte value with units-of-measure
Creates an sbyte value with units-of-measure
-
input
:
sbyte -
The input sbyte.
-
Returns:
sbyte<'Measure> -
The sbyte with units-of-measure.
A compiler intrinsic that implements dynamic invocations to the '-' operator.
A compiler intrinsic that implements dynamic invocations to the '-' operator.
-
x
:
'T1 -
y
:
'T2
-
Returns:
'U
Creates a uint16 value with units-of-measure
Creates a uint16 value with units-of-measure
-
input
:
uint16 -
The input uint16.
-
Returns:
uint16<'Measure> -
The uint16 with units-of-measure.
Creates a uint value with units-of-measure
Creates a uint value with units-of-measure
-
input
:
uint -
The input uint.
-
Returns:
uint<'Measure> -
The uint with units-of-measure.
Creates a uint64 value with units-of-measure
Creates a uint64 value with units-of-measure
-
input
:
uint64 -
The input uint64.
-
Returns:
uint64<'Measure> -
The uint64 with units-of-measure.
Creates a unativeint value with units-of-measure
Creates a unativeint value with units-of-measure
-
input
:
unativeint -
The input unativeint.
-
Returns:
unativeint<'Measure> -
The unativeint with units-of-measure.
A compiler intrinsic that implements dynamic invocations to the unary '-' operator.
A compiler intrinsic that implements dynamic invocations to the unary '-' operator.
-
value
:
'T
-
Returns:
'U