Method code for $list.nth_element_maxlength()

[Turn on line numbering]
arg lists, element;
var list;

// Returns longest string whose index is element in one of the lists in
// lists.
if (type(element) != 'integer)
    throw(~type, "Second argument is not an integer");
if (type(lists) != 'list)
    throw(~type, "First argument is not a list");
return map list in (lists) to (tostr(list[element]).length()).max();

["// Created 26-Mar-1995 as a part of ColdCore, see: @help Credit"]

the Cold Dark