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 | 31 |
Tags
- algorithm
- tip
- Equatable
- xcode
- OSLog
- Swift
- Extentsion
- UIAccessibility
- Widget
- Leetcode
- ToDoRim
- keyWindow
- COMMIT
- protocol
- GIT
- IOS
- designPattern
- pubspec.yaml
- flutter
- listview
- swiftlint
- basic
- enumerations
- github
- SwiftGen
- reetcode
- pubspec
- dart
- it
- toyproject
Archives
- Today
- Total
목록Collections (1)
개발자 수니
[iOS/Swift/Basic] 컬렉션형(Array, Dictionary, Set)
📌 이번 글은 Swift의 컬렉션 타입 Array, Dictionary, Set에 대한 설명입니다. Array (배열) 같은 타입의 데이터를 일렬로 나열한 후 순서대로 저장하는 형태의 컬렉션 타입 Array의 기본 기능 .count 배열의 요소 개수 반환 var names: Array = ["suni", "zico", "mino"] print(names.count) // 3 .isEmpty 빈 배열 인지 반환 var emptyArray: [Any] = [Any]() print(emptyArray.isEmpty) // true .first 배열의 맨 처음 요소 반환 .last 배열의 맨 마지막 요소 반환 var names: Array = ["suni", "zico", "mino", "zico"] print..
iOS - Swift
2024. 1. 23. 22:43