dash.string.list

List the elements of a vector in a formatted sting


Syntax



Description

list = dash.string.list(list)

Prints the elements of a vector in a string. In the returned string, elements are separated by commas and the word “and” is placed before the final element, if appropriate.

list = dash.string.list(list, conjunction)

Specify the conjunction to use before the final element in a list. Uses “and” by default.


Input Arguments

vector

string array | integer array
The list being converted to a string

conjunction

string scalar
A conjunction placed before the final element of the list, if appropriate.

Output Arguments

list

char row vector
The elements of the list formatted as a single char string.