Anonymous user
String matching: Difference between revisions
Updated D entry
m (Added bc and dc to list of omissions) |
(Updated D entry) |
||
Line 607:
=={{header|D}}==
<lang d>
import std.stdio;
import std.algorithm: startsWith, endsWith, find, countUntil;
"abcd".startsWith("ab").writeln; // true
// at match)
// std.algorithm.startsWith also works on arrays and ranges:
}</lang>
{{out}}
|