def Short.exp

bend-kit-fmt@0.1.0.0 · fmt.bend:348

import bend-kit-fmt@0.1.0.0/fmt.bend as Fmt
import Base

348def Short.exp(neg: Bool, +e: U32) -> String:
349  match neg:
350    case True{}:
351      SCon{'-', Short.exp.if(U32.is_lt(e, 10), e)}
352    case False{}:
353      SCon{'+', Short.exp.if(U32.is_lt(e, 10), e)}

Uses (6)

Used by (1)