Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into linqunchecked
  • Loading branch information
stephentoub authored Jan 8, 2024
commit b94f58e90a66592205954a2f28029a895edc8bb2
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public OrderedPartition(OrderedEnumerable<TElement> source, int minIdxInclusive,
public IPartition<TElement>? Skip(int count)
{
int minIndex = _minIndexInclusive + count;
return (uint)minIndex > (uint)_maxIndexInclusive ? EmptyPartition<TElement>.Instance : new OrderedPartition<TElement>(_source, minIndex, _maxIndexInclusive);
return (uint)minIndex > (uint)_maxIndexInclusive ? null : new OrderedPartition<TElement>(_source, minIndex, _maxIndexInclusive);
}

public IPartition<TElement> Take(int count)
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.