home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OL.LZH / PROCS.LZH / INSERTS.ICN < prev    next >
Text File  |  1991-07-13  |  650b  |  23 lines

  1. ############################################################################
  2. #
  3. #    Name:    inserts.icn
  4. #
  5. #    Title:    Build tables with duplicate keys
  6. #
  7. #    Author:    Robert J. Alexander
  8. #
  9. #    Date:    September 7, 1990
  10. #
  11. ############################################################################
  12. #
  13. #  inserts() -- Inserts values into a table in which the same key can
  14. #  have more than one value (i.e., duplicate keys).  The value of each
  15. #  element is a list of inserted values.  The table must be created
  16. #  with default value &null.
  17. #
  18.  
  19. procedure inserts(tabl,key,value)
  20.    (/tabl[key] := [value]) | put(tabl[key],value)
  21.    return tabl
  22. end
  23.