title: Pascal, Delphi Linked lists
body: <p>Im a newbie with linked lists but I need fast help with it.
  I have 2 linked lists.</p>
  
  <pre><code>TOccurencyNodePtr = ^TOccurencyNode;
  TOccurencyNode = record
   Occurency    : integer;
   Next : TOccurencyNodePtr;
  end;
  
  TIdentifierFoundNodePtr = ^TIdentifierFoundNode;
  TIdentifierFoundNode = record
   Identifiers    : string;
   Next       : TIdentifierFoundNodePtr;
  end;
  </code></pre>
  
  <p>and global variables: Identifier:string and Occurence:integer</p>
  
  <p>and finally I need
  routine for adding it into lists like that</p>
  
  <p>If Identifier is in list of identifiers then add occurence into occurence list if not add identifier to identifiers list and occurence into occurence list.</p>
  
  <p>Please help me :((</p>