Some Swift stuff

Mostly solutions to Rosetta Code tasks. Don't take the code here too seriously, it's just for fun.