6-1 개요
작업하면 변수가 너무 많아서 난장판이 되는데
이걸 쉽게 관리할 수 있도록 돕는 게 Collection
이렇게 쉽게 들 수 있도록

이렇게 컵에 이름을 붙여서 쉽게 찾을 수 있도록 하는 방법도 있다
- Array
- Dictionary
- set
이렇게 3가지 개념을 다룬다
추가로 Closure(코드를 수행할 수 있는 코드블럭) 개념도 다시 다룬다
6-2 Array
가장 중요한 것들 정리
- isEmpty - 비어있는지를 불리언 값으로
- count - 값이 몇 개 존재하는지
- evenNumber[4] - 몇 번째 아이템에 접근한다는 것
- for in enumerated - 하나씩 가져오기, index와 value를 같이 가져오는 것

통에 담을 수 있는 Element(요소)를 순서에 따라 담을 수 있게 한다
아래 2가지를 주의해야 한다
- 통에 담을 때 같은 타입을 담아야 한다 (다를 수 있긴한데 일단 나중에)
- Element는 순서가 있다 Index가 있다고 표현한다 (1번째 Element는 Index 0임)
이럴 때 유용하다
- 순서가 있는 아이템
- 아이템의 순서를 알면 유용할 때
6-3


6-4

