EnumerableUtility.Intersperse<T> method

Intersperses the specified value between the elements of the source collection.

public static IEnumerable<T> Intersperse<T>(this IEnumerable<T> source, T value)
parameter description
T The element type of the source sequence.
source The source sequence.
value The value to intersperse.

Return Value

A sequence of elements from the source collection, with value interspersed.

See Also