Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Combine the elements of an array into a string, with an optional separator
- proc(_arrayToString, @array, @separator,
- assign(@string, '')
- foreach(@array, @value,
- if(equals(@string, ''),
- assign(@string, @value)
- ,
- assign(@string, sconcat(concat(@string, @separator), @value))
- )
- )
- return(@string)
- )
Add Comment
Please, Sign In to add comment