System.Collections.Immutable by Microsoft

<PackageReference Include="System.Collections.Immutable" Version="9.0.0-preview.6.24327.7" />

.NET API 254,640 bytes

 ImmutableQueue

public static class ImmutableQueue
Provides a set of initialization methods for instances of the ImmutableQueue<T> class. NuGet package: System.Collections.Immutable (about immutable collections and how to install)
public static ImmutableQueue<T> Create<T>()

Creates an empty immutable queue.

public static ImmutableQueue<T> Create<T>(T item)

Creates a new immutable queue that contains the specified item.

public static ImmutableQueue<T> Create<T>(T[] items)

Creates a new immutable queue that contains the specified array of items.

public static ImmutableQueue<T> Create<T>(ReadOnlySpan<T> items)

Creates a new immutable queue that contains the specified array of items.

public static ImmutableQueue<T> CreateRange<T>(IEnumerable<T> items)

Creates a new immutable queue that contains the specified items.

public static IImmutableQueue<T> Dequeue<T>(this IImmutableQueue<T> queue, out T value)

Removes the item at the beginning of the immutable queue, and returns the new queue.