Hi, i'm wondering if there's an easy way to get a FIFO queue with O(1) complexity on Push() and Pop() in swift, and ended up looking at the "Algorithm" project.

Is this the correct place to look for ?

I'm pretty sure i could come up with a basic implementation, but i'm also pretty sure this is exactly the kind of structure that would end up to be hard to get optimal performance for without solid stdlib experience.