Search code examples
c#deque

C# - Java's Deque


in Java, there's a class called Deque, and i would like to find something similar to this in .NET (C#).

The reason i need this, is because i need to peek the last item in the collection, and then dequeue the first one in the collection.

Thanks, AJ Ravindiran.


Solution

  • PowerCollections has a Deque class (and a proven pedigree).