We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
String.length
length
1 parent e3e5617 commit c6a5f50Copy full SHA for c6a5f50
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