[Turn off line numbering]1: arg list, lines, cols, width, @other; 2: var outlist, line, i, j, sep; 3: 4: [(sep ?= " ")] = other; 5: width -= sep.length(); 6: lines = lines > list.length() ? list.length() : lines; 7: outlist = []; 8: for i in [1 .. lines] { 9: line = list[i].pad(width); 10: for j in [1 .. cols] 11: (| (line = line + sep + list[i + j * lines].pad(width)) |); 12: outlist += [line.trim('right)]; 13: } 14: return outlist;
// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit