strLSet

Left-aligns a string within a fixed width, padding with spaces. Takes str (string to align), width (total width in characters). Returns a string of exactly width characters, with str left-aligned and padded with spaces on the right.

String

Parameters & Returns

Parameters

str String
width Int

Returns

String

Quick Summary

Left-aligns a string within a fixed width, padding with spaces. Takes str (string to align), width (total width in characters). Returns a string of exactly width characters, with str left-aligned and padded with spaces on the right.

Technical Exegesis...

Returns a string of exactly width characters, with str left-aligned and padded with spaces on the right. If str is longer than width, it is truncated to width characters.

Returns an empty string if width is 0 or negative. Useful for creating fixed-width columns in text output or aligning data in tables.

Example

Example.bam
; No example implemented yet