Swift의 Clousre를 다루기 전에 알아야하는 개념이 있음일급 객체에 대해서 알아야 함다음과 같은 조건을 만족하는 것을 일급 객체라고 말함변수나 데이터 구조 안에 담을 수 있는가파라미터로 전달할 수 있는가반환값(return value)으로 사용할 수 있는가할당에
학생의 이름과 시험점수를 담는 Student struct를 만들고, students 배열을 만들어줬다. 이제 학생들이 담긴 배열에서 높은 점수를 가진 친구들을 걸러보려고 한다. topStudentFilter라는 closure를 만들고 변수로 할당했다! (클로저는 상