powered by
Parses a string of digits or space-separated numbers into an integer vector. Useful for converting operation sequences or state representations.
convert_digits(s)
Integer vector of parsed numbers
Character string. Either a string of single digits (e.g., "123") or space-separated numbers (e.g., "1 2 3" or "10 11 12").
convert_digits("123") convert_digits("1 5 4 3 2") convert_digits("10 11 12 13")
Run the code above in your browser using DataLab