Skip to content

Glossary: Swift Basics

function

Also written: functions, func

A few lines of code with a name, so you can run them whenever you need them. You define one with `func`, and running it is a function call.

Where the book teaches it

Related terms

parameterargumentmethod