Deque
Deque copied to clipboard
A C# Deque class
If you add elements using `InsertRange`, some elements might be cloned and other elements disappear. For example: ``` var deque = new Deque(new string[] { "angel", "clown", "mandarin", "surgeon" });...
Deque is a very useful class, but unfortunately I can't reference it in my Windows Phone and Xamarin projects.
This involves two parts 1. Keep track of an internal private `version` which increases on any mutating operation. 2. Write a struct Enumerator to replace the existing `GetEnumerator()` call which...
Reproduce code: ``` [Test] public void TestDequeMax() { List data = [ 44.49936768747009, 44.279118538246706, 40.661350841514555, 42.4633762329716, 42.495742714005836, 47.03919736601132, 47.11837082730667, 57.25198844070602, 49.53911309399272, 52.54464904573255, 60.25212401912705, 53.61876998925497, 62.31002403596365, 63.158534790205174, 60.30414043552428, 61.78719065768428, 62.31178895690037, 56.96034247748777,...