casting int[] to bool[]

Jarrett Billingsley jarrett.billingsley at gmail.com
Wed Jan 28 20:04:26 PST 2009


On Wed, Jan 28, 2009 at 10:37 PM, Saaa <empty at needmail.com> wrote:
>> 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?

MiniD !is D.  There are no templates; toInt and toBool are just functions.


More information about the Digitalmars-d-learn mailing list