Splitter quiz / survey

Brad Roberts braddr at puremagic.com
Sun Apr 26 19:36:33 PDT 2009


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



More information about the Digitalmars-d mailing list