Creates a sink joining the items of the feed into a string.
Items are rendered and joined as Array.prototype.join() would, that is through their default string
representation, null and undefined values excepted, which are rendered as empty strings; an empty feed joins
to an empty string.
Warning
Exhaustive: every item is drawn before the sink resolves, so an infinite feed never completes.
Materialising: the whole feed is held in memory as a single string, so a large feed may exhaust it.
Stateful: the string covers the items drawn, so a sink closing a nested or truncated feed sees those alone.
Type Parameters
V
The type of items in the feed
Parameters
separator: string = ","
The string inserted between consecutive items, defaulting to ,
Creates a sink joining the items of the feed into a string.
Items are rendered and joined as
Array.prototype.join()would, that is through their default string representation,nullandundefinedvalues excepted, which are rendered as empty strings; an empty feed joins to an empty string.