Collect

Collect items from a ForEach iteration into a single list.

Gathers one value per iteration back into a single ordered list after the loop.

Inputs

  • ItemrequiredT. Uses the item produced by a For Each branch and adds it to the collected sequence. Collect is the barrier that gathers one value from each iteration into a single list.

Outputs

  • ListList<T>. Returns the list assembled from all collected iteration items in iteration order.

Example use cases

Build a digest

Collect each iteration’s computed value into a list, then post one summary comment after the loop.

See also