.Split() / string.Join()
Splitting and joining.
Syntax
text.Split(",") // string.Join(", ", collection)Description
Split divides the text at the given separator and returns an array. string.Join combines the elements of a collection into a single string with a separator in between.
Example
Loading editor…
Expected output
3 a | b | c
When to use?
CSV parsing, printing a list to a single line.