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