title: Prolog - split word into separate letters
body: <p><a href="https://stackoverflow.com/questions/31478457/swi-prolog-splitting-text-atom-into-list-of-characters">Follow up to this question</a>. How could I split the word into letters without using lists or built-in predicate <code>atom_chars/2.</code></p>
  
  <p>Something along the lines of <code>split_word(Word, Letter, Rest).</code></p>
  
  <p>Where Letter would be 1st letter of the word.</p>
  
  <p>I'm having difficulties splitting string and I don't know how to utilize <code>''</code> as "splitter". To get an inspiration I tried checking source code of <code>atom_chars/2</code> with <code>predicate_property(atom_char(_,_), P).</code> where I got to the source, but in the file I didn't find anything useful.</p>
  
  <p>Help appreciated.</p>