title: Prolog: How to work with Global Array?
body: <p>In SWI Prolog, I need to keep marking in the same global array, how do I achieve it?</p>
  
  <p>My doubt is because, the global array will be overwritten everytime, isn't it?</p>
  
  <p>I understand I need to use dynamic and assert to acheive it. But, since I am new to Prolog I am not able to figure it out.</p>