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

@ -2,7 +2,7 @@ function parseRPNstring(rpns)
infix = []
rpn = split(rpns)
for tok in rpn
if all(isnumber, tok)
if all(isnumeric, tok)
push!(infix, parse(Int, tok))
else
last = pop!(infix)
@ -14,7 +14,7 @@ function parseRPNstring(rpns)
infix
end
unany(s) = replace(string(s), r"Any\[:\((.+)\)\]", s"\1")
unany(s) = replace(string(s), r"Any\[:\((.+)\)\]" => s"\1")
println("The final infix result: ", parseRPNstring("3 4 2 * 1 5 - 2 3 ^ ^ / +") |> unany, "\n")
println("The final infix result: ", parseRPNstring("1 2 + 3 4 + ^ 5 6 + ^") |> unany)