however the name sum is not intuitive in all scenarios and sum is not always the most efficient was to concatenate such lists as it directs through the Groovy 'plus' operator to allow custom overriding of 'plus'.

The intention is to provide a collectMany "alias" for sum which is more efficient and has naming similar to C#'s Enumerable.SelectMany operator.

Issue Links

is duplicated by

GROOVY-6443Add "flatCollect{}" method as a shorthand for collect{}.flatten()