Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -17,7 +17,7 @@ fn (mut s Stack) push(v f32) {
s.depth++
}
fn (mut s Stack) pop() ?f32 {
fn (mut s Stack) pop() !f32 {
if s.depth > 0 {
s.depth--
result := s.data[s.depth]
@ -27,7 +27,7 @@ fn (mut s Stack) pop() ?f32 {
return error('Stack Underflow!!')
}
fn (s Stack) peek() ?f32 {
fn (s Stack) peek() !f32 {
if s.depth > 0 {
result := s.data[s.depth - 1]
println('Peek: top of stack is ${result:3.2f}')