function swap ([ref] $a, [ref] $b) { $a.Value, $b.Value = $b.Value, $a.Value }