Docs for `Group` type

Bahman Movaqar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 12 05:08:55 PDT 2016


On 07/12/2016 04:23 PM, ag0aep6g wrote:
> On 07/12/2016 01:40 PM, Bahman Movaqar wrote:
>> Yes.  I'm working on Stockman[1] a playground to learn D.
>> In file `etl.d`, line 110 [2], if I change the line to
>>      auto refInvoice = group[1].takeOne();
>> the file will not compile.  I have attached the compile error to this
>> message.
> 
> Do you also add the import of takeOne? takeOne is not a range primitive,
> but a function that works on ranges. Need to import it in order to use it.

Stupid me!  Thanks :-)

-- 
Bahman


More information about the Digitalmars-d-learn mailing list