Method code for $list.vcolumnize4()

[Turn on line numbering]
arg list, @args;
var linelength, sep, lines, cols, width, max;

[(linelength ?= (| sender().linelen() |) || 79), (sep ?= " ")] = args;
max = .element_maxlength(list) + sep.length();
cols = linelength > max ? linelength / max : 1;
width = linelength / cols;
lines = list.length() / cols + (list.length() % cols ? 1 : 0);
return ._vcolumnize(list, lines, cols, width, sep);

// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit

Tlon