
Generic 정말 많은 언어에서 후반부에 나오는 개념이다. 타입과 관련해서 간편한 기능이라고 생각만 하고 있었는데, Swift 강좌를 보면서 다시 등장한 개념이라 이번 기회에 정리해보고자 한다. 우선 애플 공식 문서에서 Generic에 대한 설명을 참고해보자. https://docs.swift.org/swift-book/documentation/the-swift-programming-language/generics/ Documentation docs.swift.org Generic code enables you to write flexible, reusable functions and types that can work with any type, subject to requirements that yo..