On Thursday, 16 February 2017 at 05:20:32 UTC, H. S. Teoh wrote:
On Thu, Feb 16, 2017 at 05:02:41AM +0000, Yuxuan Shui via Digitalmars-d wrote:
On Wednesday, 15 February 2017 at 22:02:01 UTC, Seb wrote:
> On Wednesday, 15 February 2017 at 21:54:20 UTC, Yuxuan Shui > wrote:
> > [...]
> > There's byPair > (http://dlang.org/phobos/std_array.html#byPair) that as a > library does exactly the following: > > ```
> a.byKeyValue.map!(pair => tuple(pair.key, pair.value))
> ```

Thanks!

It should be more visible though. Can we include it here: https://dlang.org/spec/hash-map.html ?

Please file a bug against dlang.org to request this doc update, so that people won't forget to do it. Thanks!


T

Or just do it yourself - it's not that difficult:

https://github.com/dlang/dlang.org/edit/master/spec/hash-map.dd

Reply via email to