게시판 상태를 집합 연산으로 옮기면 중첩 반복문보다 의도가 직접 드러납니다.
{array, hash, set}
{array}
new Set(submitted)
published 제거
{hash, set}
핵심: 제출 이력을 보존하려면 submitted의 복사본에서 removeAll을 수행합니다.