Straddling checkerboard: Difference between revisions

Updated first D entry
(→‎{{header|Java}}: added Java)
(Updated first D entry)
Line 613:
.map!(r => r.split("|")).array;
 
enum straddle = (in string s) /*pure /*nothrow @safe*/ =>
toUpper(s)
.split("")
Line 621:
.join;
 
string unStraddle(string s) pure /*nothrow*/ @safe {
string result;
for (; !s.empty; s.popFront) {