0
comment
on 12/21/2014 6:36 PM
The built-in .NET Join and Split methods for strings do not provide a way for escaping the separator. If the separator is already contained in the input strings before joining, the strings cannot be reproduced by splitting: open System let inputStrings = [| "Hello, world."; "How are you?" |] let separator = ", " let joinedResult = String.Join(separator, inputStrings) let reproducedStrings = joinedResult.Split([| separator |], StringSplitOptions.None) printfn "%A" inputStrings printfn "%A" reproducedString[...]
>> Read the full article on www.blogs.sigristsoftware.com
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us
Built with WebSharper