Skip to content

__list_in_columns__

builtin · libnexusinterp/corefcn/strfns-proprietary.cc

: s = __list_in_columns__ (list)
: s = __list_in_columns__ (list, width)
: s = __list_in_columns__ (list, width, prefix)

Format the strings of list into columns, filled column by column, to fit lines of width characters (default 80), each line starting with prefix.

list is a cell array of strings, a char matrix (one item per row) or a single string. The result is a char row with embedded newlines.