UtilsZipThreeT1, T2, T3, TResult Method

Apply a given function with three input arguments to each element of three lists.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static IEnumerable<TResult> ZipThree<T1, T2, T3, TResult>(
	this IEnumerable<T1> source,
	IEnumerable<T2> second,
	IEnumerable<T3> third,
	Func<T1, T2, T3, TResult> func
)

Parameters

source  IEnumerableT1
First list of arguments.
second  IEnumerableT2
Second list of arguments.
third  IEnumerableT3
Third list of arguments.
func  FuncT1, T2, T3, TResult
Function to be applied to the lists.

Type Parameters

T1
Type of first function argument.
T2
Type of second function argument.
T3
Type of third function argument.
TResult
Type of function result.

Return Value

IEnumerableTResult
List of function results.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT1. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also