Aardvark.Base


IListExtensions

Static members

Static memberDescription
CompareTo(self, other)
Signature: (self:IList<'T> * other:IList<'T>) -> int
Type parameters: 'T
FindIndex(...)
Signature: (list:IList<'T> * startIndex:int * count:int * forward:bool * startSearch:int * match:Predicate<'T>) -> int
Type parameters: 'T

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the IList(of T) that starts at the and contains elements. If startSearch differs from startIndex, a cyclic search is performed in the range starting at .

FindIndex(...)
Signature: (list:IList<'T> * startIndex:int * count:int * forward:bool * match:Predicate<'T>) -> int
Type parameters: 'T

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the IList(of T) that starts at the and contains elements.

FindIndex(...)
Signature: (list:IList<'T> * startIndex:int * forward:bool * startSearch:int * match:Predicate<'T>) -> int
Type parameters: 'T

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the IList(of T) that extends from the to the end of the list. If startSearch differs from startIndex, a cyclic search is performed in the range starting at .

FindIndex(...)
Signature: (list:IList<'T> * startIndex:int * forward:bool * match:Predicate<'T>) -> int
Type parameters: 'T

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the IList(of T) that extends from the to the end of the list.

FindIndex(...)
Signature: (list:IList<'T> * forward:bool * startSearch:int * match:Predicate<'T>) -> int
Type parameters: 'T

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence. If startSearch differs from startIndex, a cyclic search is performed in the range starting at .

FindIndex(list, forward, match)
Signature: (list:IList<'T> * forward:bool * match:Predicate<'T>) -> int
Type parameters: 'T

Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence.

FirstIndexOf(self, other)
Signature: (self:IList<'T> * other:IList<'T>) -> int
Type parameters: 'T
FirstIndexOf(self, other, startIndex)
Signature: (self:IList<'T> * other:IList<'T> * startIndex:int) -> int
Type parameters: 'T

Search first occurance of other in self, and return index if found or -1 if not found. NOTE: simple algorithm, not optimized.

LargestIndex(self)
Signature: self:IList<'T> -> int
Type parameters: 'T
NLargestIndex(self, n)
Signature: (self:IList<'T> * n:int) -> int
Type parameters: 'T

Returns the index of the n-largest item.

NSmallestIndex(self, n)
Signature: (self:IList<'T> * n:int) -> int
Type parameters: 'T

Returns the index of the n-smallest item.

SmallestIndex(self)
Signature: self:IList<'T> -> int
Type parameters: 'T
SubRange(self, index, count)
Signature: (self:IList<'T> * index:int * count:int) -> SubRange<'T>
Type parameters: 'T
Swap(self, i, j)
Signature: (self:IList<'T> * i:int * j:int) -> unit
Type parameters: 'T

Swap the two elements specified by ther indices.

Fork me on GitHub