EnumerableExtensionsIndicesInt32AndValuesWhereT(IEnumerableT, FuncT, Boolean) Method |
Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static IEnumerable<(int Index, T )> IndicesInt32AndValuesWhere<T>(
this IEnumerable<T> org,
Func<T, bool> condition
)
Parameters
- org IEnumerableT
- The enumeration of elements.
- condition FuncT, Boolean
- The condition. The argument is the element's value
Type Parameters
- T
- The type of element to consider
Return Value
IEnumerableValueTupleInt32,
TTuples of (index and element value) of all elements in the enumeration for which the condition is fulfilled, i.e. returns true.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. 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