Jump to content

Left factorials: Difference between revisions

Updated D entry
(Initial implementation in PL/I)
(Updated D entry)
Line 99:
<lang d>import std.stdio, std.bigint, std.range, std.algorithm, std.conv;
 
BigInt leftFact(in uint n) pure /*nothrow*/ {
BigInt result = 0, factorial = 1;
foreach (immutable i; 1 .. n + 1) {
Cookies help us deliver our services. By using our services, you agree to our use of cookies.