To convert a List of items into an array of values there is a common idiom used in the portal:
This has some problems, like:
- Only arrays of things representable as strings can be returned.
- Possible errors when, for example, the string representation of the elements may contain the selected delimiter.
This LPS adds a new ListUtil.toArray to generate directly the arrays, with no intermediate string serialization.