Functions are declared as func name(params) returnType { ... }. The func keyword is also used for methods and anonymous functions.