Core Help Root: Objects: List Library: Formatting
- .join(list[, separator]) native
- Format the list by converting its elements to strings, and putting separator between them.
- .to_english(list[, empty[, and[, sep]]])
- Convert the elements of the list to strings, put separator between them, except the last two elements, that will be separated with and. Defaults for the arguments are: empty = 'nothing', and = ' and ', sep = ', '.
- .columnize(list, cols[, separator[, linelength]])
- Format the line in cols columns, adding the separators. Linelength defaults to 78.
- .lcolumnize(list[, len[, sep]])
- Columnizes by detecting the maximal length of the list elements.
- .vcolumnize(list, cols[, linelen])
- Columnizes in the stanard manner (consecutive elements are aligned vertically).
- .center_lines(list, width[, args])
- Calls $string.center on each line in the list, with extra args.
- .prefix(list, prefix)
- Prepends a prefix to each element of the list.
- .affix(l1, l2)
- Appends l2 to l1, with adding the first element of l2 to the last element of l1.
- .tabulate(list, headers[, colsizes, trim_cols, header_sep, len])
- Output the list as a table, with given headers. Colsizes, if 0, are automatically calculated.
Element | Formatting | Maps | Sets | Other
the Cold Dark