![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FqX2Aj%2FbtrBoEnHt5d%2FIuRP71Vxja8wGGddECeU6K%2Fimg.jpg)
[Swift/코드한줄] Print 문 프로퍼티 - separator, terminator
코드 한 줄에 대해 기록합니다. 의식의 흐름을 따라갑니다. 코드를 짜면서 제일 많이 사용하는 함수가 무엇일까.. 하면 Print문이라고 생각하는데 그렇기 때문에 Print 함수의 공식 문서를 참고해본 사람은 드문 거 같다 print 함수 == 출력 함수로 누구나 알고 있으니! Apple Developer Documentation developer.apple.com print(”Hello World”) 로 주로 사용하기 때문에 우리는 func print(_ item: Any) 의 형태라고 생각하겠지만.. 사실 print문의 정의는 func print(_ items: Any..., separator: String = " ", terminator: String = "\n") 로 separator과 termin..
Comment