OPTIONAL SYNOPSIS mixed* insert_alist (mixed key, mixed data..., mixed * alist) int insert_alist (mixed key, mixed * keys) DESCRIPTION 1. Form: Alist Insertion The and all following values are inserted into the . If an entry for already exists in the list, just the data values are replaced. The number of values must match the number of data arrays in the alist, naturally. Result is the updated . 2. Form: Key Insertion Insert the into the (ordered) array of , so that subsequent assoc()s can perform quick lookups. Result is the index at which was inserted (or already found). CAVEAT: when working with string keys, the index might no longer be valid after the next call to insert_alist(). Complexity: O(lg(n) + a*n) where n is the number of keys and s is a very small constant (for block move); The function is available only if the driver is compiled with alist support. In that case, __ALISTS__ is defined. HISTORY LDMud 3.3 made this an optional efun. SEE ALSO alists(LPC), assoc(E), order_alist(E)