First class functions in Swift

Languages that support first class functions enable you to use functions and methods just like any other object or value. You can pass them as arguments, save them in properties or return them from another function. In order words, the language treats functions as "first class citizens". This week, let's take a look at a few different ways that first class functions can be used in Swift!


Want to receive more content like this in your inbox?