Table of Contents

Struct PartitionResult<T>

Namespace
LfrlAnvil.Extensions
Assembly
LfrlAnvil.Core.dll

Represents a lightweight result of a Partition<T>(IEnumerable<T>, Func<T, bool>) operation.

public readonly struct PartitionResult<T>

Type Parameters

T

Element type.

Inherited Members
Extension Methods

Properties

FailedItems

All items that failed the given partitioning predicate.

public IEnumerable<T> FailedItems { get; }

Property Value

IEnumerable<T>

FailedItemsSpan

All items that failed the given partitioning predicate in a ReadOnlySpan<T> form.

public ReadOnlySpan<T> FailedItemsSpan { get; }

Property Value

ReadOnlySpan<T>

Items

All items that took part in the partitioning.

public IReadOnlyList<T> Items { get; }

Property Value

IReadOnlyList<T>

PassedItems

All items that passed the given partitioning predicate.

public IEnumerable<T> PassedItems { get; }

Property Value

IEnumerable<T>

PassedItemsSpan

All items that passed the given partitioning predicate in a ReadOnlySpan<T> form.

public ReadOnlySpan<T> PassedItemsSpan { get; }

Property Value

ReadOnlySpan<T>