On 09.06.2012 14:43, bearophile wrote:
[snip]
import std.stdio, std.algorithm, std.string, std.range, std.conv;

void main() {

auto t = "table.txt"
.File()
.byLine()
.map!(r => r.removechars("^01".dup))()
.array();

const transposed = t[0]
.length
.iota()

//hopefully I'm not alone in that this:
iota(t[0].length)
        .map!(...)
        ...
is so much more readable.



--
Dmitry Olshansky

Reply via email to