Fasta parser

Dmitry Olshansky dmitry.olsh at gmail.com
Mon Nov 12 01:16:47 PST 2012


11/11/2012 9:34 PM, bioinfornatics пишет:
> Hi,
> I wrote a fasta parser for biology computing
> http://pastebin.geany.org/yheQN/
>
> I would like to get your experience to know if the writer could be
> better. The given parser use MmFile and Phobos range.
>
> fasta specification format => http://en.wikipedia.org/wiki/FASTA_format
>

I'd like to spread the word of the proper toString signature that 
doesn't need appender.

void toString(scope delegate(const(char)[]) sink) const{
  //same code, but replace fasta.put(x) with sink(x)
}



-- 
Dmitry Olshansky


More information about the Digitalmars-d-learn mailing list