DEV Community

loading...

Discussion on: Sets, sets are everywhere

Collapse
wolfhoundjesse profile image
Jesse M. Holmes

I haven't seen set theory in a long time, and you remind me how much I miss math. What are the most common ways that you are using it to solve problems today?

Collapse
stereobooster profile image
stereobooster Author

Well, as I said as data structure I would use it to find unique values of the list (like a list of ids) or find the intersection of two lists, or check if the item already present in the list. Plus I use TypeScript - unions, intersections.