From the NannyMUD documentation
2000-12-19
NAME
implode_nicely - Implode an array of words to an English list.SYNTAX
string implode_nicely(string *words, string del)DESCRIPTION
This function implodes a list of words to a semantically correct list in English. That is, ({"green","red","blue"}) will be imploded to "green, red, and blue" if 'del' is "and" or no 'del' is given at all.EXAMPLE
> eval implode_nicely( ({ "red", "green", "blue" }), "or") Result: "red, green or blue" > eval implode_nicely( ({ "north", "south", "west" })) Result: "north, south and west" > eval implode_nicely( ({ "foo", "bar" })) Result: "foo and bar" > eval implode_nicely( ({ "foo" })) Result: "foo"