Skip to content
Snippets Groups Projects
Commit d0d8b817 authored by Henrik Wallin's avatar Henrik Wallin
Browse files

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

Rev: lib/modules/String.pmod:1.6
parent df689d74
No related branches found
No related tags found
No related merge requests found
......@@ -6,9 +6,10 @@ constant count=__builtin.string_count;
* 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 "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment