def Fmt.center.go
import bend-kit-fmt@0.1.0.0/fmt.bend as Fmtimport 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)
import bend-kit-fmt@0.1.0.0/fmt.bend as Fmtimport 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)