기본연산자
![[Swift] Swift 공식문서 정리 - 1(기본연산자, 문자열, 콜렉션 타입)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FlQNP6%2FbtrxIMi2cx6%2FmvPSe31yREO3oTZHcMdIJ0%2Fimg.png)
[Swift] Swift 공식문서 정리 - 1(기본연산자, 문자열, 콜렉션 타입)
연산자 nil 병합 연산자 - 형태 : a ?? b - 의미 : a가 nil(값이 없다)일 경우, b를 반환한다는 의미. let userColor = "green" var nilColor: String? var colerNilCheck = nilColor ?? userColor // nilColor가 nil 값, 즉 userColor가 들어간다. 문자열과 문자 문자열 리터럴 - 형태 : let something = "something" 여러줄 문자열 리터럴 let quotation = """ The White Rabbit put on his spectacles. "Where shall I begin, please your Majesty?" he asked. "Begin at the beginning," ..