풍's토리

반응형

import UIKit

 

var str = "Hello, playground"

 

var arrStr = ["one", "two", "three"]

print(arrStr)

print(arrStr[0])

 

arrStr[1] = "2"

print(arrStr)

 

arrStr += ["four"]

print(arrStr)

 

var blankStr = [String]()

print(blankStr)

arrStr += blankStr

print(arrStr)

blankStr += ["five"]

arrStr += blankStr

print(arrStr)

 

arrStr.remove(at:1)

print(arrStr)

 

print(arrStr.count)