ddash.algorithm.stringify

Converts all elements in range into a string separated by separator.

Members

Functions

stringify
string stringify(Values values)

Converts a list of values in to a string

stringifySeperatedBy
string stringifySeperatedBy(Range range, S sep)

Converts all elements in range into a string separated by separator.

stringifySeperatedBy
string stringifySeperatedBy(Range range, S sep)

Converts all elements in range into a string separated by separator.

Examples

assert([1, 2, 3].stringifySeperatedBy(',') == "1,2,3");
assert([1, 2, 3].stringify == "123");
assert([1, 2, 3].stringifySeperatedBy("-") == "1-2-3");

Meta