def fraction

bend-lint-rules@0.2.0.0 · layout/format.bend:481

import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import Base

481def fraction(go: Bool, +rest: String, keep: String, text: String, n: U32, last: Char) -> Scan:
482  match go:
483    case True{}:
484      exponent(scan(~is_digit_at, rest, rest, True{}, text ++ ".", (n + 1: U32), '.'))
485    case False{}:
486      number.tok(Run{text, n, keep, last}, False{}, True{})

Uses (12)

Used by (1)