Swift implementations for function currying
Code from CS193P iOS Development Swift Course CS 193P iPhone Application Development