I really wanted to implement queues and deques by close analogy to Okasaki's implicit queue and implicit deque structures, with Hinze and Paterson's strictness modification to cons and snoc to avoid thunk chains. Unfortunately, I wasn't able to come up with an amortization argument to support that. Maybe someone else can help? If it's possible, then we'll be able to simplify the structures and code considerably, and likely improve performance.
I really wanted to implement queues and deques by close analogy to Okasaki's implicit queue and implicit deque structures, with Hinze and Paterson's strictness modification to
consandsnocto avoid thunk chains. Unfortunately, I wasn't able to come up with an amortization argument to support that. Maybe someone else can help? If it's possible, then we'll be able to simplify the structures and code considerably, and likely improve performance.