|
| |
| | Associative array - Wikipedia, the free encyclopedia |
 | | An associative array (also dictionary, finite map, map, lookup table, and in query-processing an index or index file) is an abstract data type composed of a collection of keys and a collection of values, where each key is associated with one value. |  | | Associative arrays are known by many names in different programming languages. |  | | From the perspective of a programmer using an associative array, it can be viewed as a generalization of an array: While a regular array maps integers to arbitrarily typed objects (integers, strings, pointers, and, in an OO sense, objects), an associative array maps arbitrarily typed objects to arbitrarily typed objects. |
|
http://en.wikipedia.org/wiki/Associative_array
(2693 words)
|
|
| |
| | Hexapedia - Array |
 | | In computer programming, an array, also known as a vector or list, is one of the simplest data structures. |  | | In the C programming language, one-dimensional character arrays are used to store null-terminated strings, so called because the end of the string is indicated with a special reserved character called a null character ('\0') (see also C string). |  | | Arrays of arrays are also of value in programming languages that only supply one-dimensional arrays as primitives. |
|
http://www.hexafind.com/encyclopedia/array
(1362 words)
|
|
| |
| | [No title] |
 | | For associative arrays, the key part of each pair is compared to the pattern, and the first matching key found is the result. |  | | When an array parameter is refer enced as `$name' (with no subscript) it evaluates to `$name[*]', unless the KSH_ARRAYS option is set in which case it evaluates to `${name[0]}' (for an associative array, this means the value of the key `0', which may not exist even if there are values for other keys). |  | | K On an associative array this is like `k' but returns all values where exp is matched by the keys. |
|
http://www.ibiblio.org/gferg/ldp/man/man1/zshparam.1.html
(5713 words)
|
|
| |
| | Perl Overview |
 | | Associative arrays are arrays that are indexed by strings. |  | | The value of an array in a scalar context is the length of the array. |  | | The index string is known as the key and the datum associated with a key is called the value. |
|
http://www.scripps.edu/mb/olson/papers/avstool/node2.html
(1076 words)
|
|
| |
| | Associative Arrays |
 | | Associative arrays basically store tables of information where the lookup is the right hand key (usually a string) to an associated scalar value. |  | | Associative arrays are a very useful and commonly used feature of Perl. |  | | We would declare a Perl associative array to perform this lookup as follows: |
|
http://www.cs.cf.ac.uk/Dave/PERL/node30.html
(113 words)
|
|
| |
| | Array Functions |
 | | Arrays are also a big part of the Perl language and Perl has a lot of functions to help you work with them. |  | | array, the environment of the current process is changed, not that of the parent. |  | | In an array context, it returns a list of the things that were found. |
|
http://www.cs.cf.ac.uk/Dave/PERL/node57.html
(900 words)
|
|
| |
| | ONLamp.com -- Arrays in PHP: Part 2 |
 | | Associative arrays are identical to any other type of array with one major difference -- their index values. |  | | For example, in an associative array the index "foo" can be used to store the value "bar". |  | | Creating and working with multidimensional arrays can be done a number of ways -- all of which we introduced in part 1 of this series. |
|
http://www.onlamp.com/pub/a/php/2001/06/21/php_foundations.html
(777 words)
|
|
| |
| | The PHP Associative Array - PHP |
 | | An associative array also uses index keys but these keys are not numeric as in the example above. |  | | In the previous tutorial, you learned that an array is a variable that stores several values or elements of data organized by index keys. |  | | You use the array square brackets to add a key-value pair to the array or to create an array. |
|
http://www.bellaonline.com/ArticlesP/art31316.asp
(208 words)
|
|
| |
| | Perl Basics: Associative Arrays |
 | | Associative arrays are very handy when you are trying to get input from forms on a web page. |  | | This indicates that what follows is an associative array, so the interpreter knows to use the keys and values, rather than assign index numbers to each string. |  | | Like a regular array, you can add a value to an associative array by simply defining a new value in your script. |
|
http://www.pageresource.com/cgirec/ptut12.htm
(492 words)
|
|
| |
| | Day 10 -- Associative Arrays |
 | | Associative arrays can be used to simulate a wide variety of data structures, including linked lists, structures, trees, and databases. |  | | Finally, an associative array can be created from the return value of a built-in function or user-defined subroutine that returns a list. |  | | A program that uses an associative array to represent a binary tree. |
|
http://docs.rinet.ru/P7/ch10.htm
(6532 words)
|
|
| |
| | PERL -- Array and List Functions |
 | | Note that, since $_ is a reference into the array value, it can be used to modify the elements of the array. |  | | There is a single iterator for each associative array, shared by all each(), keys() and values() function calls in the program. |  | | When the array is entirely read, a null array is returned (which when assigned produces a FALSE (0) value). |
|
http://www-2.cs.cmu.edu/People/rgs/pl-exp-arr.html
(1284 words)
|
|
| |
| | Program 3 |
 | | When a new value is stored in the associative array your program will see if there is already a value stored with the given index. |  | | In an ordinary array there is no need to store the index, but in an associative array the index must be stored. |  | | Anything which is to be stored in the associative array must have both an index and a value. |
|
http://cs.gmu.edu/~dnord/cs310/program3.html
(1450 words)
|
|
| |
| | PHP: Array Functions - Manual |
 | | There are specific database handling functions for populating arrays from database queries, and several functions return arrays. |  | | this array are always used on form querys... |  | | I use it to write an array to file. |
|
http://www.php.net/manual/en/ref.array.php
(2185 words)
|
|
| |
| | PHPBuilder.com - recursively filter two or more associative array..help~ |
 | | While in that loop, do an array_search() on the other array for the current value of the first array. |  | | waahh!!..its harddd!!!..it is ok if my arrays are not that complicated..it seems that i have multidimensional associative array combine with index array...ahahhahaaa..that's why it is hard for me to find any example..all the example always give me problemss.. |  | | You want to merge the arrays such that the resulting array contains entries that are unique, where uniqueness is a user defined property. |
|
http://www.phpbuilder.com/board/showthread.php?t=10319473
(812 words)
|
|
| |
| | array |
 | | An external index, such as a hash table or inverted index may help make an array search quicker and speed overall processing if the array is not changed often. |  | | Paul E. Black, "array", from Dictionary of Algorithms and Data Structures, Paul E. Black, ed., NIST. |  | | Jennifer E. Elaan's fast array algorithm, equivalent to Knuth's. |
|
http://www.nist.gov/dads/HTML/array.html
(180 words)
|
|
| |
| | The AWK Manual - Array Intro |
 | | superficially resemble arrays in other programming languages; but there are fundamental differences. |  | | Only the values are stored; the indices are implicit from the order of the values. |  | | But you cannot use one name in both ways (as an array and as a variable) in one |
|
http://www.cs.uu.nl/~piet/docs/nawk/nawk_80.html
(478 words)
|
|
| |
| | associative array |
 | | Paul E. Black, "associative array", from Dictionary of Algorithms and Data Structures, Paul E. Black, ed., NIST. |  | | The simplest, but slowest, implementation is to do a linear search over the array for a match. |  | | If that is too slow, and you access the array by number, too, you must create and maintain an index into the array. |
|
http://www.nist.gov/dads/HTML/assocarray.html
(131 words)
|
|
| |
| | WebDeveloper.com - Associative Array Question |
 | | I believe I need to use an associative array where the key is the ID and the value is an array consisting of the sums of the other columns. |  | | find the array matching the key and add the values of the current row to the columns of the row that already exists in the associative array |  | | I'm thinking for my algorithm I need to say: |
|
http://www.webdeveloper.com/forum/printthread.php?t=50781
(428 words)
|
|
| |
| | The Associative Array Object's Help File |
 | | The Associative Array object's set-up dialog allows you to set the object's data to be global. |  | | This condition returns true if the array has been modified since the last time the a file was saved or loaded or since the last time the array was cleared. |  | | Addresses: The Associative Array Object allows you to have indirect access to locations in memory (that is, addresses of data). |
|
http://www.engr.uconn.edu/~mjg01f01/bumderland/objects/assarray.html
(4031 words)
|
|
| |
| | Associative Arrays |
 | | Another common use for arrays is to store tables of data. |  | | Tcl, like most scripting languages (Perl, Python, PHP, etc...) supports associative arrays (also known as "hash tables") in which the index value is a string. |  | | In the example below we use an array to store a simple database of names. |
|
http://www.tcl.tk/man/tcl8.5/tutorial/Tcl22.html
(329 words)
|
|
| |
| | Sort Associative Multidimensional Array by Multiple Keys - Dev Shed |
 | | Another option would be to just say to hell with it and cache the query each time it's sorted differently. |  | | It would be very simple to sort at the SQL level, but I'm not sure I want to have every query cached for each sort method, plus ascending, descending, etc. So, I'd rather sort the cached array if possible. |  | | you just write a callback function that compares 2 things in your array and returns -1, 0, or 1. |
|
http://forums.devshed.com/php-development-5/sort-associative-multidimensional-array-by-multiple-keys-291032.html
(569 words)
|
|
| |
| | Discussion Forums : Associative Array ... |
 | | What you will have to do is deconvolute your record type data structure into plsql associative arrays: one array per column. |  | | In your example, since it's a PL/SQL Associate Array I'm still unable to perform SQL on it. |  | | Yes, you can use Associative Arrays with the current versions of the ODP. |
|
http://forums.oracle.com/forums/thread.jsp?forum=146&thread=205160&tstart=15&trange=15
(315 words)
|
|
| |
| | JavaScript Associative Arrays |
 | | Associative arrays give you another way to store information. |  | | The downside is that these aren't as useful in a loop because they do not use numbers as the index value. |  | | var my_cars= new Array() my_cars["cool"]="Mustang"; my_cars["family"]="Station Wagon"; my_cars["big"]="SUV"; |
|
http://www.pageresource.com/jscript/jarray2.htm
(309 words)
|
|
| |
| | [No title] |
 | | The "array slicing operator" returns an array with as many dimensions as it started with...so rectangular slicing isn't even an issue. |  | | Today, my record on questions relating to arrays is about 0-2, so maybe there's some easy way to do this that I've missed (smirk) > > * What happens if you array slice a rectangular array and try to set it > > "by reference" to another array? |  | | IMHO, this is an almost > > must-have feature...but be careful, Pavel (playful grin), because it > > won't look right to have end-exclusive syntax here, either > > How exactly do you slice an associative array? |
|
http://www.digitalmars.com/drn-bin/wwwnews?D/3626
(383 words)
|
|
| |
| | WebDeveloper.com - Sorting associative array? |
 | | I know this would probably be easier using an enumerated array, but I prefer this method since it allows me fast lookups. |  | | I was hoping there would be some generic function for sorting associative arrays... |  | | Who can help me with a function to sort an associative array of which the values are objects: |
|
http://www.webdeveloper.com/forum/showthread.php?threadid=88331
(823 words)
|
|
| |
| | Oracle Associative Array |
 | | Note: An associative array in PL/SQL is similar to its counterpart in Perl: An array indexed by a string rather than by an integer. |  | | In so doing it also demonstrates how such an array is created, loaded, and referenced. |  | | CREATE OR REPLACE PROCEDURE use_aa IS TYPE vtab IS TABLE OF VARCHAR2(20) |
|
http://www.psoug.org/reference/associative_arrays.html
(64 words)
|
|
| |
| | Smarty :: View topic - About loop in an associative array with {section} |
 | | An advantage of section is you can access other assigned arrays with the same loop var, much like for() vs. foreach() |  | | but i can use the key-attribute to get a loop-var as a hook to access the corresponding values of other arrays than the loop-array. |  | | The way showed in Smarty's manual doesn't work. |
|
http://www.phpinsider.com/smarty-forum/viewtopic.php?p=12689
(813 words)
|
|
| |
| | JavaScript Associative Arrays [persistent.info] |
 | | In fact, it is better to create the associative array using the generic |  | | I understand that the concept of associatvie array is fairly new to me, so it's maybe something simple that I'm missing. |  | | I had read all those other links from google and I was wondering why sort() and join() didn't work! |
|
http://persistent.info/archives/2004/08/27/js-associative-arrays
(594 words)
|
|
| |
| | Using an Associative Array |
 | | The map<> container is an example of an associated array. |  | | The string is the key whose associated value is an int: |  | | In this example, a map is used to translate the string value of an enumerator into its corresponding integral value. |
|
http://www.devx.com/tips/Tip/5659
(213 words)
|
|
| |
| | Laszlo - associative array length |
 | | Array is an Object, so you can store non-numeric properties in an array, but only the numeric properties affect the length. |  | | I can't access string indexes by the methods of array object (pop, shift, etc.). |  | | I would like to use associative array, but when I insert a new element with string index, the length property of array is not modified. |
|
http://www.laszlosystems.com/developers/community/forums/showthread.php?threadid=3337
(89 words)
|
|
| |
| | PHP Classes - Class: Associative array to XML |
 | | This class can parse a XML document and build an array structure with the information of the tags and data of the document. |  | | The class can also generate a XML document from using the entry keys and values of the associative array. |  | | There are not enough user ratings to display for this class. |
|
http://www.phpclasses.org/browse/package/2286.html
(115 words)
|
|
| |
| | Atlanta, Georgia |
 | | Despite romantic associations, Atlanta has always been more a commercial city than an ante-bellum monument. |  | | The team was founded in 1871 in Boston, Massachusetts as a National Association club, making it the oldest continuously operating sports franchise in North American sports. |  | | The Braves won the World Series in 1995 and have had an unprecedented run of thirteen divisional championships since 1991. |
|
http://www.info-pedia.net/about/atlanta_georgia
(4438 words)
|
|
|