Extracted at 2014-06-26.
pike.ida.liu.se
[Top]
Tools
Tools.Array

Method Tools.Array.consolidate()


Method consolidate

array consolidate(array(string) input, string|void template)

Description

collapse duplicated and adjacent elements.

Parameter template

a template string to use for collapsed elements, uses Tools.String.named_sprintf with the parameter names "message" and "count". If a template is not specified, a default will be provided.