Toggle navigation
image/svg+xml
nextTech_full_transparent
Products
XYZ for Developers
Interactive courses for tech skills
Sandbox for Developers
Frictionless development environments
XYZ for Education Providers
Scalable tech education platform
Explore
Full Course Catalog
Check out the catalog of interactive courses
The Next Tech Blog
Read about what's happening at Next Tech
Sandbox Use Cases
Some of the many ways you can use Sandbox
Pricing
Community
Log In
Get Started
Beginning Swift
Learn all about Swift, the programming language developed by Apple.
Start Course for Free!
View Course
Using @discardableResult
Sign Up to Continue
Steps In This Lesson
Functions
Defining a Function
Argument Labels
Excluding Argument Labels
Parameter Default Values
Implementing a Function
Returning Values from Functions
Using @discardableResult
Function Attributes