Prints text to an output buffer.
Syntax
-
print(X)-
Xis any object
-
-
print(buf, X)-
bufis a string -
Xis any object
-
Description
If X is any object, then print(X) prints string(X) to the console.
If buf is the name of a named output buffer, then print(buf, X) prints string(X) to the output buffer named buf.
Examples
n ≔ 0; repeat(if(round(100000⋅[sin(√n/10) + 1/(2 + sin(n/10))]) = 1, print("sols", n)); inc(n))
▐█SOLS█████████▌ │ 61141 │ │ 88954 │ │ 179809 │ │ 544862 │ │ 640493 │ │ 641686 │ │ 858770 │ │ 867436 │ │ 1097599 │ │ 1107333 │ │ 1416112 │ │ ⋮ │ └──────────────┘