Anonymous user
Run-length encoding: Difference between revisions
Updated second D entry
m (Tweak) |
(Updated second D entry) |
||
Line 951:
// Similar to the 'look and say' function.
string encode(in string input) pure
if (input.empty)
return input;
Line 971:
}
string decode(in string input) pure /*@safe*/ {
string i, result;
|