Splitter quiz / survey

Denis Koroskin 2korden at gmail.com
Sun Apr 26 22:29:05 PDT 2009


On Mon, 27 Apr 2009 06:36:33 +0400, Brad Roberts <braddr at puremagic.com> wrote:

> Without looking at the docs, code, or compiling and running a test, what  
> will
> this do:
>
>     foreach(x, splitter(",a,b,", ","))
>         writefln("x = %s", a);
>
> I'll make it multiple choice:
>
> choice 1)
>   x = a
>   x = b
>
> choice 2)
>   x =
>   x = a
>   x = b
>
> choice 3)
>   x = a
>   x = b
>   x =
>
> choice 4)
>   x =
>   x = a
>   x = b
>   x =
>
> Later,
> Brad

I'd expect 4.




More information about the Digitalmars-d mailing list