casting int[] to bool[]

Saaa empty at needmail.com
Wed Jan 28 19:37:13 PST 2009


> Sorry, can't help but post this:
>
> local data = io.readFile("data/parsed.dat").splitLines().apply$
> \line -> line[14 .. 19].split(",").apply$
> \item -> toBool$ toInt$ item
>
> writeln$ data[0]
>
> It's a one-liner (one-..statementer) in MiniD!  <_<
Waa!

Can't toInt be skipped when you use the to! template? 




More information about the Digitalmars-d-learn mailing list