On Monday, April 04, 2016 02:32:56 Yuxuan Shui via Digitalmars-d-learn wrote: > On Monday, 4 April 2016 at 00:50:27 UTC, Jonathan M Davis wrote: > > On Sunday, April 03, 2016 23:46:10 John Colvin via > > > > Digitalmars-d-learn wrote: > >> On Saturday, 2 April 2016 at 16:00:51 UTC, Jonathan M Davis > >> > >> wrote: > >> > [...] > >> > >> Maybe > >> > >> aa.byKey().takeExactly(aa.length) > > > > Yeah, that's a clever workaround. > > So should we not add length to byKey?
I don't see any reason for the result of byKey to not have length. It's just that given that it doesn't currently have length, John's suggestion provides a way to turn it into a range with length. - Jonathan M Davis