title: Prolog element in lists replacement
body: <p>Hi i was wondering if you could help me out with this</p>
  
  <p>From programming in Prolog:  write Prolog script for replacement any given element in lists by an another given element. For example:</p>
  
  <pre><code>replace( 3, a,[1,2,3,4,3,5], [1,2,a,4,a,5])=true
  </code></pre>
  
  <p>Many Thanks in advance</p>