Skip to content

Glossary: Swift Basics

return

Also written: return value, return type

`return` leaves a function and hands back its value, which takes the place of the call. `-> Double` states the return type.

Where the book teaches it

Related terms

functionimplicit returnVoid