IEnumerableExtensions Class |
Namespace: Bio.Util
The IEnumerableExtensions type exposes the following members.
Name | Description | |
---|---|---|
AppendT(IEnumerableT, IEnumerableT) |
Yield a concatenation of the two Enumerable lists
| |
AppendT(IEnumerableT, T) |
Yield an Enumeration of the list with the item appended to the end
| |
AsSingletonEnumerableT |
Yield this
| |
ElementAtTSource |
Returns the element at a specified index in a sequence.
| |
FirstT |
Same semantics as Enumerable.First(), but optimized for ILists. Throws an exception if the list is empty.
| |
ForEachT(IEnumerableT, ActionT) |
Calls an action on each element of a sequence. The action takes one argument: an element. It has no return value.
| |
ForEachT(IEnumerableT, ActionT, Int32) |
Calls an action on each element of a sequence. The action takes two arguments: an element and the index of the element.
It has no return value.
| |
LastT |
Same semantics as Enumerable.Last(), but optimized for ILists. Throws an exception if the list is empty.
| |
ShuffleT |
Shuffles the elements of a sequence.
| |
SingleT |
Same semantics as Enumerable.Single(IEnumerable), but optimized for ILists. Throws an exception if list does not contain exactly 1 element. Otherwise returns that element.
| |
StringJoin(IEnumerable) |
Creates a string from a sequence of elements. No delimiter is used.
| |
StringJoin(IEnumerable, String) |
Creates a delimited string from a sequence of elements.
| |
StringJoin(IEnumerable, String, Int32, String) |
Creates a delimited string from a sequence of elements. At most maxLength elements will be used and "..." shows that more elements were in the list.
| |
SubSequenceT |
Take the items from a sequence starting with item # start (index 0) and contining for count items.
| |
ToDictionaryT1, T2 |
Creates a dictionary from a sequence of KeyValuePairs. If the sequence is already a Dictionary, a new Dictionary is still created.
| |
ToHashSetT(IEnumerableT) |
Creates a HashSet from a sequence. If the sequence is already a HashSet, a new HashSet is still created.
| |
ToHashSetT(IEnumerableT, IEqualityComparerT) |
Creates a HashSet from a sequence. If the sequence is already a HashSet, a new HashSet is still created.
| |
ToQueueT |
Creates a Queue from a sequence. If the sequence is already a Queue, a new Queue is still created.
|