NAME implode_nicely - implode an array of words to an English list SYNOPSIS 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. EXAMPLES > 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" SEE ALSO efun/implode, efun/explode
Help topics available:
_get_all_obj | _next_obj | _prev_obj | abs | expand_file_name |
frnd | get_objects | getopts | implode_nicely | itoa |
line_break | load_object | mapping_rusage | query_ip_name | set_light |
sgn | short_date | typep |
You are guest number 138 since November 2019.
This file was last modified: June 2000.