Returns a function that splits text according to the specified lengths.
Splitter.SplitTextByLengths(lengths as list) as function
|lengths||The lengths to split on.|
- Each item in lengths should be a non-negative number indicating the number of characters to use for each item. SplitTextByLengths works by computing a set of ranges by adding each subsequent length to compute the next position, and delegating to SplitTextByRanges. The list returned will have the same cardinality as that of the positions.