Abstract
Swift functions are actually a type of closure, and Swift’s implementation of closures is both flexible and powerful—ranging from anonymous inline closures similar to Objective-C blocks, to complex functions extending far beyond the capabilities of an Objective-C method.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Scott Gardner
About this chapter
Cite this chapter
Gardner, S. (2014). Creating Functions. In: Transitioning to Swift. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0406-1_6
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0406-1_6
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0407-8
Online ISBN: 978-1-4842-0406-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)