0 people like it.
Like the snippet!
String.Join with pipe
Just use the concat
1:
|
module String = let Join separator (xs:System.Collections.Generic.IEnumerable<string>) = System.String.Join(separator, xs)
|
module String
from Microsoft.FSharp.Core
val Join : separator:string -> xs:System.Collections.Generic.IEnumerable<string> -> string
val separator : string
val xs : System.Collections.Generic.IEnumerable<string>
namespace System
namespace System.Collections
namespace System.Collections.Generic
type IEnumerable<'T> =
inherit IEnumerable
member GetEnumerator : unit -> IEnumerator<'T>
Multiple items
val string : value:'T -> string
--------------------
type string = System.String
Multiple items
type String =
interface IComparable
interface IEnumerable
interface IConvertible
interface IEnumerable<char>
interface IComparable<string>
interface IEquatable<string>
interface ICloneable
new : value: char [] -> unit + 8 overloads
member Clone : unit -> obj
member CompareTo : value: obj -> int + 1 overload
...
--------------------
System.String(value: char []) : System.String
System.String(value: nativeptr<char>) : System.String
System.String(value: nativeptr<sbyte>) : System.String
System.String(value: System.ReadOnlySpan<char>) : System.String
System.String(c: char, count: int) : System.String
System.String(value: char [], startIndex: int, length: int) : System.String
System.String(value: nativeptr<char>, startIndex: int, length: int) : System.String
System.String(value: nativeptr<sbyte>, startIndex: int, length: int) : System.String
System.String(value: nativeptr<sbyte>, startIndex: int, length: int, enc: System.Text.Encoding) : System.String
System.String.Join(separator: string, values: System.Collections.Generic.IEnumerable<string>) : string
System.String.Join<'T>(separator: string, values: System.Collections.Generic.IEnumerable<'T>) : string
System.String.Join(separator: string, [<System.ParamArray>] values: obj []) : string
System.String.Join(separator: string, [<System.ParamArray>] value: string []) : string
System.String.Join<'T>(separator: char, values: System.Collections.Generic.IEnumerable<'T>) : string
System.String.Join(separator: char, [<System.ParamArray>] values: obj []) : string
System.String.Join(separator: char, [<System.ParamArray>] value: string []) : string
System.String.Join(separator: string, value: string [], startIndex: int, count: int) : string
System.String.Join(separator: char, value: string [], startIndex: int, count: int) : string
More information