OCLOperators asCommaList
This page was created by Hans.karlsen on 2018-08-05. Last edited by Stephanie on 2025-02-04.
The asCommaList operator takes a collection of strings and appends them to 1 resulting string with commas between:
Set{'x','y','x'}->asCommaList()
Will produce 'x,y,z'
See also: asSeparatedList
Turn a comma-separated back into a collection of strings:
<string>.split(',')->collect(s|s.trim)
See also: split