checkpoint 2
https://www.hackingwithswift.com/quick-start/beginners/checkpoint-2
This time the challenge is to create an array of strings, then write some code that prints the number of items in the array and also the number of unique items in the array.
var animals = ["cat", "dog", "elephant", "koala", "tiger", "lion", "lion"]
var animalsSet = Set(animals)
print(animals.count)
print(animalsSet.count)
코드 파일
https://github.com/soaringwave/Ios-studying/blob/main/printNumberOfArray.playground/Contents.swift