def pad_right
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmtimport Base
43# Pad on the right / left to `w` characters (never truncates).
44def pad_right(+s: String, +w: Nat) -> String:
45 s ++ spaces(Nat.sub(w, String.length(s)))
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmtimport Base
43# Pad on the right / left to `w` characters (never truncates).
44def pad_right(+s: String, +w: Nat) -> String:
45 s ++ spaces(Nat.sub(w, String.length(s)))