inverse of :toarray to create a CSV string

:toarray can be used to split a CSV string into parts as documented at http://wiki.mikrotik.com/wiki/Script_to_find_the_day_of_the_week

What is the inverse? i.e. how can you convert an array of strings into a CSV string (apart from manually coding a loop)?

–jeroen