Swift LanguageFunction as first class citizens in Swift


Introduction

Functions as First-class members means, it can enjoy privileges just like Objects does. It can be assigned to a variable, passed on to a function as parameter or can be used as return type.