EnumerableExtensionsIndicesInt32WhereT(IEnumerableT, FuncInt32, T, Boolean) Method |
Returns the indices of the elements which fullfill a given condition, given by the element's value and its index.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static IEnumerable<int> IndicesInt32Where<T>(
this IEnumerable<T> org,
Func<int, T, bool> condition
)
Parameters
- org IEnumerableT
- The enumeration of elements.
- condition FuncInt32, T, Boolean
- The condition. The first argument is the element's index, the second argument is the element's value.
Type Parameters
- T
- The type of element to consider
Return Value
IEnumerableInt32The indices 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