def in.base
import yaml-for-bend@0.1.1.0/core.bend as Coreimport Base
import yaml-for-bend@0.1.1.0/re.bend as R
79# Whether +s+ is an integer in a base other than ten, which takes time
80# that grows with the square of its length to read.
81def in.base(+s: String) -> Bool:
82 Bool.or(R.matches(oct.pat(), s), R.matches(hex.pat(), s))