[Turn off line numbering]1: arg list, @options; 2: var empty, and, sep; 3: 4: [(empty ?= "nothing"), (and ?= " and "), (sep ?= ", ")] = options; 5: switch (list.length()) { 6: case 0: 7: return empty; 8: case 1: 9: return tostr(list[1]); 10: } 11: return join(list.delete(list.length()), sep) + and + tostr(list[list.length()]);
// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit