
map_delete(3)         LPC Library Functions         map_delete(3)

NNAAMMEE
       map_delete()  -  remove a (key, value) pair from a mapping
       based on the key

SSYYNNOOPPSSIISS
       void map_delete( mapping m, mixed element );

DDEESSCCRRIIPPTTIIOONN
       map_delete removes the (key, value)  from  the  mapping  m
       that has key equal to element.

       For example, given:

              mapping names;

              names = ([]);
              names["truilkan"] = "john";
              names["wayfarer"] = "erik";
              names["jacques"] = "dwayne";

       Then:

              map_delete(names,"truilkan");

       causes the mapping 'names' to be equal to:

              (["wayfarer" : "erik", "jacques" : "dwayne"])

       keys(names)    will    not    contain   "truilkan"   after
       map_delete(names,"truilkan")  is  called  [unless   ("tru       ilkan", *) is subsequently added back to the mapping].

SSEEEE AALLSSOO
       allocate_mapping(3)

Majik                      26 Jul 1997                          1

