title: Prolog-iterating through list
body: <p>Let's say i have list <code>Xs = [a,b,c].</code>
  Now i want to iterate through all elements and call another function for this elements. My question is: how to do this using head and tail? I would be grateful for help.</p>