String comparison: Difference between revisions
Content added Content deleted
(Added F# version) |
(→{{header|F_Sharp|F#}}: fixed function name in text) |
||
Line 246: | Line 246: | ||
As a .NET language F# can make use of the [http://msdn.microsoft.com/en-us/library/system.string System.String] class. |
As a .NET language F# can make use of the [http://msdn.microsoft.com/en-us/library/system.string System.String] class. |
||
As strict strongly typed language F# never coerces any other type to string. |
As strict strongly typed language F# never coerces any other type to string. |
||
<tt>System.String</tt> implements <tt> |
<tt>System.String</tt> implements <tt>Compare</tt> function variants which are told by a |
||
[http://msdn.microsoft.com/en-us/library/system.stringcomparison StringComparison] enumeration value how to compare, which might be "culture sensitive" or use an "ordinal comparison". |
[http://msdn.microsoft.com/en-us/library/system.stringcomparison StringComparison] enumeration value how to compare, which might be "culture sensitive" or use an "ordinal comparison". |
||
Both of these might also be of the <tt>IgnoreCase</tt> variant. |
Both of these might also be of the <tt>IgnoreCase</tt> variant. |