Method code for $command_lib.handle_shortcut_fields()

[Turn on line numbering]
arg subs, fields;
var subbed_list, elem;

subbed_list = [];
for elem in (subs) {
    if (type(elem) == 'string)
        subbed_list += [elem];
    else if (type(elem) == 'integer)
        subbed_list += [(> fields[elem] <)];
    else
        throw(~type, "Substitution element is of wrong type.");
}
return subbed_list;

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

Tlon