AUSTRA

Common base class for all sequences.

C#

```
public abstract class Sequence<T, TSelf>
where T : struct, new(), Object, IAdditionOperators<T, T, T>, IAdditiveIdentity<T, T>, ISubtractionOperators<T, T, T>, IMultiplyOperators<T, T, T>, IMultiplicativeIdentity<T, T>, IDivisionOperators<T, T, T>
where TSelf : Sequence<T, TSelf>
```

- Inheritance
- Object SequenceT, TSelf

- Derived

- T
- The type for the returned items.
- TSelf
- The covariant type of the sequence.

ItemIndex | Gets the value at the specified index. |

ItemInt32 | Gets the value at the specified index. |

ItemRange | Gets a range from the sequence. |

All | Checks whether the predicate is satisfied by all items. |

Any | Checks whether the predicate is satisfied by at least one item. |

Clone | Performs a shallow copy of the sequence and performs a reset. |

Contains | Checks if the sequence contains the given value. |

Distinct | Gets only the unique values in this sequence. |

Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |

Filter | Transform a sequence acording to the predicate passed as parameter. |

First | Gets the first value in the sequence. |

GetHashCode | Serves as the default hash function. (Inherited from Object) |

GetType | Gets the Type of the current instance. (Inherited from Object) |

Last | Gets the last value in the sequence. |

Length | Gets the total number of values in the sequence. |

Map | Transform a sequence acording to the function passed as parameter. |

Next | Gets the next item in the sequence. |

PointwiseDivide | Item by item division of sequences. |

PointwiseMultiply | Item by item multiplication of two sequences. |

Product | Gets the product of all the values in the sequence. |

Reduce | Reduces a sequence to a single number. |

Reset | Resets the sequence. |

Sum | Gets the sum of all the values in the sequence. |

ToString | Returns a string that represents the current object. (Inherited from Object) |

Until(FuncT, Boolean) | Get the initial values of a sequence until a predicate is satisfied. |

Until(T) | Get the initial values of a sequence until a value is found. |

While | Get the initial values of a sequence that satisfy a predicate. |

Zip | Joins the common part of two sequence with the help of a lambda. |

Copyright © by Intuitive Sight, 2023