https://toitlang.org/ logo
Is there an efficient way to test a Deque for leng...
# general
n
Is there an efficient way to test a Deque for length of non-null items? I have a use case where I want to use the reserve method to preallocate but I need to test the size of contents. Using reserve makes it so that 'mydeque.size' returns the reserved length, even with no contents.