Description of Methods and Functions
{structure:Here is a description of each of the slots:'
slot, path: 'pathExpr, type:'dataType
} {structure:'multi
slot, path: ['pathExpr, ...], type: ['dataType
, ...]}
structure
'slot
, for a single-slot index, or 'multislot
, for a multi-slot index.
path
'name
or 'date
, or a path expression like 'name.first
. For a multi-slot index, this is an array of symbols or path expressions.
type
name
slot, you have a string value in this slot. The possible values for type are 'int
, 'string
, 'char
, 'real
, or 'symbol
. For a multislot index, this is an array of types (which parallels the path
array).'tags
,
which specifies that the path slot of the entries contains tags. Note that you can have only one tags index per soup.
order
'ascending)
. Setting the order slot to 'descending
, changes the keys to descending order. For a multislot index, this is an array of symbols (which parallels the path
array). Each symbol is either 'ascending
or 'descending
. This allows you to independently set the order of each of the slots.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996