Swift *almost* does a really cool thing I want