Std.Text.center
1 declaration
fn
center: Str -> Int -> Str -> StrThis is a callable function.
What it does
Text padded on both sides to at least width characters.
Whole copies of the filler alternate between the sides, starting on the
left, so the left side holds the extra copy when the count is odd. Empty
filler leaves the text unchanged.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
