How to work with character arrays¶
In MARPLE, a string is a character vector -- each element is a single character:
You can index, reverse, and reshape character vectors just like numeric ones:
Character matrices¶
A table of strings is a character matrix. Rows are padded with spaces to equal length:
This creates a 3-by-5 matrix where each row is a 5-character name.
Case conversion¶
See also: Trim whitespace, Standard library -- strings