FuncUtilEnumerableGenTv1, Tv2, Tr(FuncTv1, Tv2, Tr, ValueTupleTv1, Tv2) Method

Return a Enumerable based on the result of a repeatedly called function. The changing parameters for that function are given per tuples.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static IEnumerable<Tr> EnumerableGen<Tv1, Tv2, Tr>(
	Func<Tv1, Tv2, Tr> fun,
	params (Tv1 , Tv2 )[] tuples
)

Parameters

fun  FuncTv1, Tv2, Tr
function to call.
tuples  ValueTupleTv1, Tv2
params as tuple list for the function.

Type Parameters

Tv1
type of param one.
Tv2
type of param two.
Tr
return type of the function and therefore also the underlying element type of the result.

Return Value

IEnumerableTr
enumerable of returns of all function calls.

See Also