Method code for $list.vcolumnize4()

[Turn off line numbering]
  1: arg list, @args;
  2: var linelength, sep, lines, cols, width, max;
  3: 
  4: [(linelength ?= (| sender().linelen() |) || 79), (sep ?= " ")] = args;
  5: max = .element_maxlength(list) + sep.length();
  6: cols = linelength > max ? linelength / max : 1;
  7: width = linelength / cols;
  8: lines = list.length() / cols + (list.length() % cols ? 1 : 0);
  9: return ._vcolumnize(list, lines, cols, width, sep);

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

Tlon