Dinesman's multiple-dwelling problem: Difference between revisions

Content deleted Content added
Bartj (talk | contribs)
→‎{{header|Bracmat}}: Corrected error
Line 128: Line 128:


=={{header|D}}==
=={{header|D}}==
As for flexibility: the solve function is parameterized, accepting a length argument and a variable number of function predicates.
{{incomplete|D|Comments on flexibility?}}
<lang d>import std.stdio, std.range, std.math;
<lang d>import std.stdio, std.range, std.math;