Upraviť

Zdieľať cez


ImmutableQueue<T>.Peek Method

Definition

Returns the element at the beginning of the immutable queue without removing it.

public:
 virtual T Peek();
public T Peek ();
abstract member Peek : unit -> 'T
override this.Peek : unit -> 'T
Public Function Peek () As T

Returns

T

The element at the beginning of the queue.

Implements

Exceptions

The queue is empty.

Applies to