foreach loop + counter iter + Phobos range
bioinfornatics
bioinfornatics at fedoraproject.org
Tue Nov 20 05:57:32 PST 2012
On Tuesday, 20 November 2012 at 12:32:45 UTC, bioinfornatics
wrote:
> On Tuesday, 20 November 2012 at 11:33:23 UTC, bearophile wrote:
>> bioinfornatics:
>>
>>> what is wrong at line 171 ? i am explicit i said i want a
>>> counter iterator and a Fasta struct!
>>
>> See:
>> http://d.puremagic.com/issues/show_bug.cgi?id=5550
>>
>> Bye,
>> bearophile
>
> thanks i vote up for your request is really a need
I try to use :
@property
Tuple!(size_t, Fastq) front(){
Tuple!(size_t, Fastq) result;
result[0] = _i;
result[1] = _extract( _sections[0] );
_i++;
return result;
}
but it seem is not aggregate by the foreach loop :-(
More information about the Digitalmars-d-learn
mailing list