Intro to Sets
Set has functions that are pretty easy to understand. Let’s hop into some code
Let’s say we have a room where we invited 5 random varsity players for an interview. For each player we represent them as an emoji. However we want to a second data structure that shows the unique teams in the room. We made this unique set in the first example, but we can make it in a short syntax from the first array.
Initialize a Set with Any Iterable
Any iterable can be used to initialize a set, so Maps, Arrays, Strings, and others Sets are fair game