4 ms·
I mostly agree with this comment except “dequeue” is a bad example. C++ has called this data structure “deque” (pronounced deck) since the beginning of the STL.
by sgerenser 6y ago
I mostly agree with this comment except “dequeue” is a bad example. C++ has called this data structure “deque” (pronounced deck) since the beginning of the STL. Is there another language/library that spells it dequeue?
- IncRnd 6y ago> Is there another language/library that spells it dequeue? Yes. https://www.npmjs.com/package/dequeue https://api.jquery.com/dequeue/ https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.queue-1.dequeue?view=net-5.0
- DaiPlusPlus 6y ago.NET uses Dequeue as a verb, not a noun though.
- sgerenser 6y agoPerhaps that's another reason to call the data structure a "Deque" since "Dequeue" is already used for the verb meaning "to remove an item from a queue."
- IncRnd 6y agoIt's also for a completely different purpose, but I was answering about the spelling as a direct answer to a question.
- mikepurvis 6y agoFor better or worse, Rust calls it a VecDeque, but I think this is meant to clarify that the structure is just Vec storage with some extra methods on top to provide convenient ring buffer usage patterns: https://doc.rust-lang.org/std/collections/struct.VecDeque.html https://doc.rust-lang.org/std/collections/struct.VecDeque.ht...
- chapium 6y agohttps://docs.oracle.com/javase/7/docs/api/java/util/Deque.html https://docs.oracle.com/javase/7/docs/api/java/util/Deque.ht...