ImmutableQueue.Dequeue<T> Method (IImmutableQueue<T>, T)

 

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

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

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

Parameters

queue
Type: System.Collections.Immutable.IImmutableQueue<T>

The queue to remove the item from.

value
Type: T

When this method returns, contains the item from the beginning of the queue.

Return Value

Type: System.Collections.Immutable.IImmutableQueue<T>

The new queue with the item removed.

Type Parameters

T

The type of elements in the immutable queue.

Return to top
Show: