variadic parameter (1) 썸네일형 리스트형 049 ~ 060. Functions (함수) Functions 특정한 기능을 수행하는 코드 조각이다. 코드의 재사용이 가능해 지기 때문에 유지보수에 유리해진다. Calling Functions (함수 호출) Syntax functionName(parameters) print("hello") 결과 hello Defining Functins (함수 정의) Syntax func name(parameters) -> ReturnType { statements } func printHello() { print("hello") } printHello() 결과 hello Return Values (반환) Syntax func name(parameters) -> ReturnType { statements return expression } func add() ->.. 이전 1 다음