foo.byPair .array .sort!((a, b) => a.key < b.key) .map!(a => a.value);
Is it possible to specify in `map` to return the result `[a.key] = a.value`? To make the result look like `[key:[val], key:[val]]`
Alexander Zhirov via Digitalmars-d-learn Wed, 08 Feb 2023 23:21:38 -0800
foo.byPair .array .sort!((a, b) => a.key < b.key) .map!(a => a.value);
Is it possible to specify in `map` to return the result `[a.key] = a.value`? To make the result look like `[key:[val], key:[val]]`