본문 바로가기

수니의 개발새발

검색하기
수니의 개발새발
프로필사진 개발자 수니

  • 분류 전체보기 (92)
    • iOS - Swift (47)
    • iOS (5)
    • Flutter (20)
    • Git (6)
    • Project (2)
    • Algorithm (10)
    • IT 이야기 (2)
Guestbook
250x250
반응형
Notice
Recent Posts
Recent Comments
Link
«   2025/09   »
일 월 화 수 목 금 토
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
  • github
  • designPattern
  • dart
  • Equatable
  • enumerations
  • Widget
  • OSLog
  • basic
  • SwiftGen
  • it
  • GIT
  • pubspec.yaml
  • listview
  • xcode
  • Swift
  • reetcode
  • flutter
  • ToDoRim
  • tip
  • protocol
  • algorithm
  • keyWindow
  • Extentsion
  • UIAccessibility
  • swiftlint
  • COMMIT
  • toyproject
  • IOS
  • Leetcode
  • pubspec
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바