Tiny but useful (numerical/functional) snippets in Swift.