map1 제네릭(Generics) https://developer.apple.com/documentation/swift/array/map(_:)-87c4d map(_:) | Apple Developer Documentation Returns an array containing the results of mapping the given closure over the sequence’s elements. developer.apple.com map(_:) 함수를 공부하던 중 제대로 정립되지 않은 개념이 있어서 정리한다. map(_:) 함수는 클로저를 사용하여 배열의 각 요소를 처리하고, 그 결과를 새로운 배열로 반환하는 함수이며, 다음과 같이 생겼다. func map(_ transform: (Self.Element) throws -> T) r.. 2023. 10. 4. 이전 1 다음