Balanced brackets: Difference between revisions

Content added Content deleted
(→‎{{header|D}}: link to doc on the built-in)
Line 129: Line 129:


=={{header|D}}==
=={{header|D}}==
D has a [http://www.digitalmars.com/d/2.0/phobos/std_algorithm.html#balancedParens built-in] method for this.
<lang d>import std.stdio, std.algorithm, std.string, std.random;
<lang d>import std.stdio, std.algorithm, std.string, std.random;