Using sets in associative arrays

2024-11-11 Thread Ralph via Digitalmars-d-learn
Hi there, I know it is possible to declare an associative array which takes arrays as values, i.e. **int[][int] arr;** A sample of this could be **arr[2] = [2, 3, 2, 4, 5];** I was wondering if there was a way to have this with sets instead of arrays. In D, sets are equivalent to red-black tr

Re: Using sets in associative arrays

2024-11-12 Thread Ralph via Digitalmars-d-learn
On Tuesday, 12 November 2024 at 07:47:58 UTC, Sergey wrote: On Tuesday, 12 November 2024 at 00:42:41 UTC, Ralph wrote: Hi there, I know it is possible to declare an associative array which takes arrays as values, i.e. **int[][int] arr;** A sample of this could be **arr[2] = [2, 3, 2, 4, 5];**