def int.text

yaml-for-bend@0.1.1.0 · yaml11.bend:130

import yaml-for-bend@0.1.1.0/yaml11.bend as Yaml11
import Base
import yaml-for-bend@0.1.1.0/num.bend as N
import yaml-for-bend@0.1.1.0/core.bend as C

130# An integer's decimal text; +s+ already matched one of the integer forms.
131def int.text(+s: String) -> String:
132  +t = no.seps(s)
133  N.signed(C.is_neg(t), int.of.digits(C.unsigned(t)))

Uses (6)

Used by (1)