core :: Text :: is_oct
true
assert "213453".is_oct == true assert "781".is_oct == false
# Returns `true` if the string contains only Octal digits # # ~~~ # assert "213453".is_oct == true # assert "781".is_oct == false # ~~~ fun is_oct: Bool do for i in chars do if i < '0' or i > '7' then return false return true end