View/Edit #29:from_list

Switch to edit mode.

Name(s): from_list
1:  "$string_utils:from_list(list [, separator])"
2:  "Return a string being the concatenation of the string representations of the elements of LIST, each pair separated by the string SEPARATOR, which defaults to the empty string."
3:  LIST = args[1]
4:  if (length(args) <= 1)
5:    return tostr(@LIST)
6:  elseif (LIST)
7:    separator = args[2]
8:    result = tostr(LIST[1])
9:    for elt in (listdelete(LIST, 1))
10:     result = tostr(result, separator, elt)
11:   endfor
12:   return result
13: else
14:   return ""
15: endif

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: Hacker (#60)

You are not logged in.

[home | help | who | search | setup | code]