/// <summary> /// Enqueues a sequence of items to the back of the <see cref="IDeque{T}"/>. /// </summary> /// <typeparam name="T">The type of items.</typeparam> /// <param name="deque">The double-ended queue to add the items to.</param> /// <param name="items">The items to enqueue.</param> public static void EnqueueRangeToBack <T>(this IDeque <T> deque, IEnumerable <T> items) { deque.ThrowIfNull(nameof(deque)); items.ThrowIfNull(nameof(items)); foreach (T item in items) { deque.EnqueueItemToBack(item); } }