In the year of our lord 2024 we should not be writing for loops for standard operations. Here we introduce named slice operations not found in the golang slices package. Note all these functions are pure.
This is a version of the queue we have elsewhere, but we can get rid of all the casting and interface usage in favor of a type param.