Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- coremotion
- UIKit
- SWIFT
- NavigationSearchBar
- CarouselCollectionview
- Array vs Linked List
- ReferceCycle
- Value Type Reference Type
- 롤케이크 자르기
- 양궁대회
- 프로그래머스
- Reference Cycle
- TableView
- @escaping
- CoreData
- UserDefaults
- 테이블뷰 나누기
- TableView Section
- 강한 참조 순환
- 자료구조
- 면접을 위한 CS 전공 지식 노트 Tree
- Carousel CollectionView
- Input Output
- wil
- 면접을 위한 CS전공 지식 노트
- retain cycle
- firebase
- class struct
- tableview section별 다른 cell적용
- til
Archives
- Today
- Total
목록generics (1)
개발하는 동글 :]
[TIL],[Swift],[Generics(제네릭) 공부해 보기!][0]
1. Generics(제네릭)이 해결하는 문제! 먼저 간단한 예시를 통해 알아보자! var num1 = 1 var num2 = 2 위와 같이 두 개의 변수가 있고 두 변수를 교환하는 함수를 작성해 보자. var doubleNum1 = 1.1 var doubleNum2 = 1.2 func swapTwoInts(_ a: inout Int, _ b: inout Int) { let tempA = a a = b b = tempA } swapTwoInts(&num1, &num2) func swapTwoDoubles(_ a: inout Double, _ b: inout Double) { let tempA = a a = b b = tempA } swapTwoInts(&num1, &num2) swapTwoDoubles(..
카테고리 없음
2023. 9. 19. 00:24