NAME
  order_alist - Creates an alist.

SYNOPSIS
  mixed *order_alist(mixed *keys, mixed *|void data, ...);


DESCRIPTION
  Either takes an array containing keys, and others containing the associated
  data, where all arrays are to be of the same length,
  or takes a single array that contains as first member the array of keys
  and has an arbitrary number of other members containing data, each of wich
  has to be of the same length as the key array.


  Complexity is O( n * lg(n) * m ) , where n is the number of elements
  in the key array and m is the number of data arrays + 1;

  Note that the the dimensions of the arrays are used the other way
  than in lisp to allow for faster searching.

  Keys have to be of type integer, string or object. Types can be mixed.


RETURN VALUE
  Returns an array holding the sorted key array and the data arrays; the same
  permutation that is applied to the key array is applied to all data arrays.

SEE ALSO
   LPC/alists, insert_alist, assoc.

Help topics available:
add_verb assoc create_wizard extract insert_alist
order_alist slice_array

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 81 since January 2020.
This file was last modified: June 2000.