Branch: Tag:

1999-07-07

1999-07-07 21:51:41 by Henrik Wallin <hedda@lysator.liu.se>

String.impode_nicely() uppdated to support array(string|float|int).

Rev: lib/modules/String.pmod:1.6

6:    * Implode an array of strings to an english 'list'    * ie. ({"foo","bar","gazonk"}) beomces "foo, bar and gazonk"    */ - string implode_nicely(string *foo, string|void and) + string implode_nicely(array(string|int|float) foo, string|void and)   {    if(!and) and="and"; -  +  foo=(array(string))foo;    switch(sizeof(foo))    {    case 0: return "";