title: Split a list in prolog
body: <p>suppose i have this list in prolog:</p>
  
  <pre><code>[-0.791666666666667-[]-[predicate(a,b,c,d)]-[predicate_2(p,e,q,d,g)]]
  </code></pre>
  
  <p>there is way to split this in:</p>
  
  <pre><code>-0.791666666666667, [], [predicate(a,b,c,d)], [predicate_2(p,e,q,d,g)] ???
  </code></pre>
  
  <p>Split means have different pice of the list.</p>
  
  <p>Maybe:</p>
  
  <pre><code>X = -0.791666666666667  Y = []  Z = [predicate(a,b,c,d)] etc...
  </code></pre>
  
  <p>Or another solution can be replace - with "," so it become a list with different elements? </p>