Struct EnumerableTuple<I, T>
Represents tuple as enumerable collection.
Implements
IReadOnlyList<I>
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public struct EnumerableTuple<I, T> : IReadOnlyList<I> where T : IStructuralEquatable, IStructuralComparable
Type Parameters
Name | Description |
---|---|
I | The type of items in the tuple. |
T | The tuple type. |
Properties
| Improve this Doc View SourceCount
Gets number of items in the tuple.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
Item[Int32]
Gets tuple item by its index.
Declaration
public I this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index of the item. |
Property Value
Type | Description |
---|---|
I | Item value. |
Methods
| Improve this Doc View SourceGetEnumerator()
Gets enumerator over items in the tuple.
Declaration
public EnumerableTuple<I, T>.Enumerator GetEnumerator()
Returns
Type | Description |
---|---|
EnumerableTuple.Enumerator<> | The enumerator over items. |
Implements
IReadOnlyList<>