UtilsblowUpT, U(IEnumerableT, IEnumerableIEnumerableU) Method

Blow up the items in s to each of its items maps to an enumerable in t.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static List<T> blowUp<T, U>(
	IEnumerable<T> s,
	IEnumerable<IEnumerable<U>> t
)

Parameters

s  IEnumerableT
Source List of items to use for flattening.
t  IEnumerableIEnumerableU
Target list of lists used as the structure for flattening.

Type Parameters

T
Type of the item of the list to be expanded.
U
Type of the list of list which to take the data structure from.

Return Value

ListT
Flattened and expanded list of items s. Expansion is according to the data structure of t.

See Also