Table of Contents

Marble diagram

The Slice operator specifies an index-based filter over elements of the source sequence. Elements from the source sequence are accepted if their index is: greater than or equal to Start; less than Stop, or the stop index property is not specified; not set to be skipped by the Step property.

Warning

If the index of elements in the source sequence becomes greater than or equal to Stop, then Slice will terminate successfully and cancel the subscription to the source sequence.