7 lines
333 B
Text
7 lines
333 B
Text
println("First 11 left factorials:\n", [0..10].apply(leftFact));
|
|
lfs:=[20..111,10].apply(leftFact);
|
|
println(("\n20 through 110 (inclusive) by tens:\n" +
|
|
"%d\n"*lfs.len()).fmt(lfs.xplode()));
|
|
|
|
println("Digits in 1,000 through 10,000 by thousands:\n",
|
|
[0d1_000..0d10_000, 1000].pump(List,fcn(n){leftFact(n).toString().len()}));
|