title: Prolog assigning atom to another atom
body: <p>I have a base case in my predicate in which I have to assign the value that is in atom A to atom B. Not sure if this is possible but is there any way to do this?</p>
  
  <p>my predicate is as below</p>
  
  <pre><code>  montage(Expr,Out) :- atom(Expr), ....
  </code></pre>
  
  <p>From the atom(Expr) onwards, I tried various ways but nothing is right.</p>
  
  <p>For example if Expr is 'a' and Out is 'a11' and Expr is an atom, Out will be assigned 'a' as well. </p>
  
  <p>Thanks in advance for the help.</p>