Checkpoint 2

ยท

Create an array with duplicate items, then count them.

Convert the array to a set, then count the items.

Checkpoint

let albums = ["a", "b", "c", "d", "c", "b", "a"]
print(albums.count)
let uniqueAlbums = Set(albums)
print(uniqueAlbums.count)

Thoughts: Coolness.

Currently
Building

1 product