I just have to add this fun vim using your (@drjdpowell) SQLite library.
It's LINQ for LabVIEW (I only spent 20 minutes on it so it's a bit rough)
LcArray_LINQ.vim
I would definitely not use a Swap Values here as it just makes the code confusing.
Of the three I think the top is the most natural (but there is something about the inner dequeue which does not sit well with me).