“Patterns in Swift are, at least to me, a strange mixture of being very powerful, simple, complex, and obvious, all at the same time.”
This post includes numerous examples of the various (and there are quite a few) patterns available Swift.
Pattern Matching in Swift
Mohammad Azam shows how to create “Hello World” app in OS X, using Swift.
Philip Hutchins on bash and looping through an array, sequence of values or using a counter:
“Often times you need to run the same task in bash against a number of different arguments. Loops in bash can make this very quick and easy.”
Bash Tricks and Shortcuts