rename std functions

This commit is contained in:
2025-07-24 14:06:15 +02:00
parent dfec298823
commit 65bdac2fe3
26 changed files with 328 additions and 294 deletions

View File

@@ -1,14 +1,14 @@
func main[] : I64
let answer: I64 = Math.abs(Math.urandom()) % 100
let answer: I64 = math.abs(math.urandom()) % 100
while true
print("Guess a number: ")
let guess: I64 = IO.read_line() |> String.trim() |> I64.parse()
io.print("Guess a number: ")
let guess: I64 = io.read_line() |> str.trim() |> str.parse_i64()
if guess == answer
print("You win!")
io.print("You win!")
break
else if guess < answer
print("Too low!")
io.print("Too low!")
else
print("Too high!")
io.print("Too high!")