Atomic Habits — Day 202

Hsu Chia Wen
Jan 28, 2023

--

C# LINQ — Skip, SkipLast, SkipWhile

Enumerable.Skip<TSource>(IEnumerable<TSource>, Int32) Method (System.Linq) | Microsoft Learn
Bypasses a specified number of elements in a sequence and then returns the remaining elements.

Enumerable.SkipLast<TSource>(IEnumerable<TSource>, Int32) Method (System.Linq) | Microsoft Learn
Returns a new enumerable collection that contains the elements from source with the last count elements of the source collection omitted.

Enumerable.SkipWhile Method (System.Linq) | Microsoft Learn
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.

--

--