Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend TupleSet class, add TupleMap class. (#157)
I need a set class that holds tuples just like the TupleMap previously introduced. <!-- ELLIPSIS_HIDDEN --> ---- > [!IMPORTANT] > Extend `TupleMap` class with initialization and iteration features, and introduce `TupleSet` class for managing sets of tuples. > > - **TupleMap Class**: > - Added constructor to initialize with array of `[Some<K>, V]`. > - Added `entries()` and `keys()` methods for iteration. > - Changed `set()`, `get()`, `has()`, and `delete()` to use `Some<K>` for keys. > - **TupleSet Class**: > - New class `TupleSet` added. > - Uses `TupleMap` to manage tuples as keys. > - Provides `add()`, `has()`, `delete()`, `values()`, and `clear()` methods. > - Implements iterable interface and `size` property. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=nomic-ai%2Fdeepscatter&utm_source=github&utm_medium=referral)<sup> for 6219efa. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information