본문 바로가기 메뉴 바로가기

Peppo

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Peppo

검색하기 폼
  • 분류 전체보기 (221)
    • Story (13)
    • iOS (143)
      • Error (11)
    • 알고리즘 (43)
    • ETC (7)
    • React-Native (0)
    • CS (Computer science) (3)
  • 방명록

스위프트 Array (1)
[Swift] 콜렉션 타입 1-1 (Collection Types) - Arrays

Swift에선 콜렉션 타입으로 Array(배열), Set, Dictionary(사전) 세 가지를 지원합니다. 이 글에선 Array만 알아보도록 할게요 !! 콜렉션의 가변성 Array, Set, Dictionary를 변수(var)에 할당하면 이 콜렉션은 변경가능하고, 상수(let)에 할당하면 변경할 수 없습니다. 배열(Arrays) 배열 타입은 아래처럼 나타낼 수 있습니다. Array // 기본형 // 또는 [Element] // 축약형 빈 배열 생성 빈 배열의 경우 아래와 같이 표기 합니다. var someInts: [Int] = [] print("someInts is of type [Int] with \(someInts.count) items.") // someInts is of type [Int] w..

iOS 2021. 12. 26. 22:50
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • Peppo's Github
TAG
  • swift 고차함수
  • Swift 알고리즘
  • Swift final
  • swift property
  • Swift init
  • Swift Error Handling
  • Swift joined
  • RIBs tutorial
  • Swift 내림차순
  • swift programmers
  • Swift 프로그래머스
  • RTCCameraVideoCapturer
  • Swift Leetcode
  • Swift inout
  • Combine: Asynchronous Programming with Swift
  • Swift
  • Swift RIBs
  • removeLast()
  • CS 네트워크
  • Swift ModernRIBs
  • swift protocol
  • swift (programmers)
  • swift reduce
  • Class
  • ios
  • Swift 프로퍼티
  • iOS error
  • 원티드 프리온보딩
  • 2023년 회고
  • Swift joined()
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바