13 Working with sets

This chapter covers

  • Comparing differences between sets and arrays
  • Creating sets in different ways
  • Using union and intersect operations to locate items in different types of software
  • Understanding tradeoffs between usings sets and search operations

It does not take much time to define a set and show what operations they can be used for. What does take time is developing an understanding or intuition about what sort of problems you can solve with sets.

Many problems related to organizing and locating data can be solved beautifully by utilizing sets and set operations, but that is not always apparent. In this chapter, I will go through what sets are as well as what you can do with them, and then I’ll walk you through various ...

Get Julia as a Second Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.