250x250
반응형
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
- UIAccessibility
- algorithm
- enumerations
- OSLog
- xcode
- it
- Leetcode
- dart
- protocol
- tip
- reetcode
- COMMIT
- Widget
- IOS
- GIT
- Swift
- designPattern
- keyWindow
- basic
- pubspec
- Extentsion
- pubspec.yaml
- listview
- SwiftGen
- ToDoRim
- toyproject
- swiftlint
- github
- Equatable
- flutter
Archives
- Today
- Total
목록tuple (1)
수니의 개발새발
[iOS/Swift/Basic] 튜플 Tuple
튜플 Tuple 프로그래머 마음대로 만드는 타입 지정된 데이터의 묶음 튜플 예제 // String, Int, Double 타입을 갖는 튜플 var student: (name: String, grade: Int, score: Double) = ("suni", 2, 4.2) // 요소 이름을 사용해 값 사용 print("이름: \(student.name), 학년: \(student.grade), 학점: \(student.score)") // 요소 이름을 사용해 값 할당 student.grade = 3 // 인덱스를 통해 값 사용 print("이름: \(student.0), 학년: \(student.1), 학점: \(student.2)") // 인덱스를 통해 값 할당 student.2 = 4.3 튜플 별칭 지..
iOS - Swift
2022. 1. 22. 11:05