def Fmt.center.go

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

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

31def Fmt.center.go(+pad: Nat, s: String, +c: Char) -> String:
32  +l = {Nat.div(pad, 2n) : Nat}
33  Fmt.fill(l, c) ++ s ++ Fmt.fill(Nat.sub(pad, l), c)

Uses (7)

Used by (1)