Julian way of expressing a buffer swap

If the mutable struct doesn’t escape, it will generally be stack allocated as well.
This is not true of Arrays, however.

3 Likes