We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 53dc216 + 194b6c7 commit ff03da6Copy full SHA for ff03da6
1 file changed
src/fsharp/FSharp.Core/string.fs
@@ -12,6 +12,9 @@ namespace Microsoft.FSharp.Core
12
[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
13
[<RequireQualifiedAccess>]
14
module String =
15
+ [<CompiledName("Length")>]
16
+ let length (str:string) = if isNull str then 0 else str.Length
17
+
18
[<CompiledName("Concat")>]
19
let concat sep (strings : seq<string>) =
20
String.Join(sep, strings)
@@ -101,6 +104,3 @@ namespace Microsoft.FSharp.Core
101
104
else
102
105
let rec check i = (i < str.Length) && (predicate str.[i] || check (i+1))
103
106
check 0
-
- [<CompiledName("Length")>]
- let length (str:string) = if isNull str then 0 else str.Length
0 commit comments