Question: what are the differences between functions and methods in swift?
Answer: Some folks use “function” and “method” interchangeably, but there's a small difference: both of them are reusable chunks of code, but methods belong to classes, structs, and enums, whereas functions do not. ... Swift uses the same keyword, func , for both functions and methods.