func swap(Ref a, Ref b) { [*a, *b] ยป (b, a); }