CHARS¶
Info
New in Atfinity 17.
Description¶
CHARS splits a string into a list of its individual characters. Non-string values are converted to their string representation first.
Use CHARS when you need to walk a string character by character, for example with map() and TO_INT to process digits.
Syntax¶
Returns: a list of one-character strings.
Example¶
This returns ['A', '1', 'B'].
This returns [1, 2, 3].
This returns ['1', '0', '2', '4'] — a number is converted to its digits automatically, so no cast is needed.