Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/fsharp/FSharp.Core/string.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ namespace Microsoft.FSharp.Core
[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
[<RequireQualifiedAccess>]
module String =
[<CompiledName("Length")>]
let length (str:string) = if isNull str then 0 else str.Length

[<CompiledName("Concat")>]
let concat sep (strings : seq<string>) =
String.Join(sep, strings)
Expand Down Expand Up @@ -101,6 +104,3 @@ namespace Microsoft.FSharp.Core
else
let rec check i = (i < str.Length) && (predicate str.[i] || check (i+1))
check 0

[<CompiledName("Length")>]
let length (str:string) = if isNull str then 0 else str.Length