Just -containers +text
O(n) Left-justify a string to the given length, using the specified fill character on the right. Subject to fusion. Performs replacement on invalid scalar values.
Examples:
> justifyLeft 7 'x' "foo" == "fooxxxx"
> justifyLeft 3 'x' "foobar" == "foobar"
O(n) Left-justify a string to the given length, using the specified fill character on the right. Subject to fusion. Performs replacement on invalid scalar values.
Examples:
> justifyLeft 7 'x' "foo" == "fooxxxx"
> justifyLeft 3 'x' "foobar" == "foobar"
O(n) Right-justify a string to the given length, using the specified fill character on the left. Performs replacement on invalid scalar values.
Examples:
> justifyRight 7 'x' "bar" == "xxxxbar"
> justifyRight 3 'x' "foobar" == "foobar"
O(n) Right-justify a string to the given length, using the specified fill character on the left. Performs replacement on invalid scalar values.
Examples:
> justifyRight 7 'x' "bar" == "xxxxbar"
> justifyRight 3 'x' "foobar" == "foobar"