title: how to assign one list to a variable in prolog?
body: <p>I want to append([],C,C) where C is a list containing some elements . Is it possible? I will append some list in C containing elements  append (Found,C,C) if other condition is true. 
  And also i want to store final value in C to a variable D . How can I do that?</p>