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
- SwiftUI
- dfs
- 고득점kit
- SOPT
- DynamicProgramming
- discardableResult
- URLSession
- algoritm
- 0이끝이아니길
- algorithm
- 다이나믹프로그래밍
- 기초문법
- GCD
- IOS
- HAVIT
- APPJAM
- concurrency
- 연속펄스부분수열의합
- BFS
- binarySearch
- 동적계획법
- 프로그래머스
- Swift
- SwiftUI Tutorials
- SQL
- 이진탐색
- Til
- duno
- SwiftUI 튜토리얼
- GroupBy
Archives
- Today
- Total
목록foreach (1)
suvera-dev 🥦
Swift ) 기초 문법 2일차 - foreach 반복문
Swift 기초 문법 2일차 - foreach 반복문 import UIKit // 콜렉션 : 데이터를 모아둔 것 // 배열, 셋, 딕셔너리, 튜플 // 배열 var myArray : [Int] = [0,1,2,3,4,5,6,7,8,9,10] // 배열의 갯수 만큼 반복합니다. for item in myArray { print("item: \(item)") } for item in myArray where item > 5 { print("5보다 큰수: \(item)") } for item in myArray where item % 2 == 0 { print("짝수: \(item)") } for item in myArray where item % 2 != 0 { print("홀수: \(item)") } 조건..
Language/Swift
2022. 2. 4. 01:48