Implement a snapshotable set with iterators | Databricks