I have string "DBCA" and want sort it in F#
let sortedString str =
...
printfn "%A" <| sortedString "DBCA" // "ABCD"
Code sample on C#
String
.Concat(
_str
.OrderBy(ch => ch)
);
I have string "DBCA" and want sort it in F#
let sortedString str =
...
printfn "%A" <| sortedString "DBCA" // "ABCD"
Code sample on C#
String
.Concat(
_str
.OrderBy(ch => ch)
);