make pure.spl's or behave like std

This commit is contained in:
Daniella / Tove 2024-11-16 00:42:52 +01:00
parent 9e936277c7
commit 78ec4e066f
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -13,7 +13,7 @@ func swap { b a | with a b ;
}
func not { !x | with x ;
1
1
x if { pop 0 }
}
@ -23,9 +23,8 @@ func and { a&&b | with a b ;
}
func or { a||b | with a b ;
0
a if { pop 1 }
b if { pop 1 }
b
a if { pop a }
}
func alit-end { array | with type ;