Data update

This commit is contained in:
Ingy döt Net 2024-07-13 15:19:22 -07:00
parent 29a5eea0d4
commit 5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions

View file

@ -1,15 +1,10 @@
import java.math.BigInteger
// version 1.0.5-2
fun main() {
// Using a 64-bit unsigned type, print until 18446744073709551615
(1u..ULong.MAX_VALUE).forEach { println(it) }
fun main(args: Array<String>) {
// print until 2147483647
(0..Int.MAX_VALUE).forEach { println(it) }
// print forever
var n = BigInteger.ZERO
while (true) {
println(n)
n += BigInteger.ONE
}
// Using unlimited-size integers, print forever
var n = BigInteger.ONE
while (true) println(n++)
}

View file

@ -0,0 +1 @@
## 1.Step.Print

View file

@ -0,0 +1 @@
⍢(&p.+1)1 1

View file

@ -0,0 +1,9 @@
const stdout = @import("std").io.getStdOut().writer();
pub fn main() !void {
var i: u128 = 1;
while (true) : (i += 1) {
try stdout.print("{}, ", .{i});
}
}