Re: No aa.byKey.length?

2016-04-04 Thread John Colvin via Digitalmars-d-learn
On Monday, 4 April 2016 at 02:32:56 UTC, Yuxuan Shui 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

Re: No aa.byKey.length?

2016-04-04 Thread Jonathan M Davis via Digitalmars-d-learn
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

Re: No aa.byKey.length?

2016-04-03 Thread Yuxuan Shui via Digitalmars-d-learn
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

Re: No aa.byKey.length?

2016-04-03 Thread Jonathan M Davis via Digitalmars-d-learn
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: > > On Saturday, April 02, 2016 15:38:30 Ozan via > > > > Digitalmars-d-learn wrote: > >> On Friday, 1 April 2016 at 20:50:32 UTC, Yuxuan Shui wrote: >

Re: No aa.byKey.length?

2016-04-03 Thread John Colvin via Digitalmars-d-learn
On Saturday, 2 April 2016 at 16:00:51 UTC, Jonathan M Davis wrote: On Saturday, April 02, 2016 15:38:30 Ozan via Digitalmars-d-learn wrote: On Friday, 1 April 2016 at 20:50:32 UTC, Yuxuan Shui wrote: > Why? > > This is annoying when I need to feed it into a function that > requires hasLength.

Re: No aa.byKey.length?

2016-04-02 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, April 02, 2016 15:38:30 Ozan via Digitalmars-d-learn wrote: > On Friday, 1 April 2016 at 20:50:32 UTC, Yuxuan Shui wrote: > > Why? > > > > This is annoying when I need to feed it into a function that > > requires hasLength. > > aa.keys.length That allocates an array. Doing that would

Re: No aa.byKey.length?

2016-04-02 Thread Ozan via Digitalmars-d-learn
On Friday, 1 April 2016 at 20:50:32 UTC, Yuxuan Shui wrote: Why? This is annoying when I need to feed it into a function that requires hasLength. aa.keys.length

Re: No aa.byKey.length?

2016-04-01 Thread Ali Çehreli via Digitalmars-d-learn
On 04/01/2016 01:50 PM, Yuxuan Shui wrote: Why? This is annoying when I need to feed it into a function that requires hasLength. Sounds easy to implement. Please file an enhancement request: https://issues.dlang.org/ Ali

No aa.byKey.length?

2016-04-01 Thread Yuxuan Shui via Digitalmars-d-learn
Why? This is annoying when I need to feed it into a function that requires hasLength.