Is this code "D-ish" enough?

Ali Çehreli acehreli at yahoo.com
Wed Aug 7 14:54:08 PDT 2013


On 08/07/2013 11:25 AM, lafoldes wrote:

 >    repeat(0, count).
 >    map!(t => tuple(f.rawRead(id)[0], f.readln('\0'))).
 >    array.
 >    sort!("a[0] < b[0]").
 >    map!(t => format("%6d %08x  %s\n", lineNo++, t[0], t[1])).
 >    copy(stdout.lockingTextWriter);

Without giving much thought to your specific problem, I just want to 
mention H. S. Teoh's recent article:

   http://wiki.dlang.org/Component_programming_with_ranges

The problem in the article has to deal with data that is not trivially 
structured.

Ali



More information about the Digitalmars-d-learn mailing list