swift function (1) μΈλ€μΌν 리μ€νΈν [Swift] ν¨μ(Function) - κΈ°λ³Έ βοΈ ν¨μμ μ μμ ν κ°λ°λ¬Έμμ λ°λ₯΄λ©΄ Swiftμμ ν¨μλ λ€μκ³Ό κ°μ΄ μ μλλ€. [Definition]Functions are self-contained chunks of code that perform a specific task. You give a function a name that identifies what it does, and this name is used to “call” the function to perform its task when needed. ν¨μ(Functions)λ νΉμ μμ μ μννλ μ체μ μΌλ‘ ν¬ν¨λ(self-contained) μ½λ λ©μ΄λ¦¬(chunks) μ΄λ€. ν¨μκ° λ¬΄μμ νλμ§ μλ³κ°λ₯ν μ΄λ¦μ μ£Όκ³ , μ΄λ¬ν μ΄λ¦μ νμν λ μμ μ μννκΈ° μν΄ νΈμΆ(call.. μ΄μ 1 λ€μ