Availability:built-in
[ISO]atom_chars(?Atom,
?CharList)Similar to atom_codes/2,
but CharList is a list of characters (atoms of
length 1) rather than a list of character codes (integers
denoting characters).
?- atom_chars(hello, X).
X = [h, e, l, l, o]