2using System.Collections.Generic;
3using System.Diagnostics.CodeAnalysis;
8 internal interface IDeque<T> : IReadOnlyCollection<T>
24 void InsertFirst(T item);
31 bool TryRemoveFirst([MaybeNullWhen(
false)] out T result);
47 bool RemoveFirst(T item);
52 void InsertLast(T item);
59 bool TryRemoveLast([MaybeNullWhen(
false)] out T result);
72 bool TryPeekFirst([MaybeNullWhen(
false)] out T result);
86 bool TryPeekLast([MaybeNullWhen(
false)] out T result);