Listclass | systype.h[394], reflect.t[322] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
Modified in reflect.t[322]:
Modify the List intrinsic class to provide a to-symbol mapping
intrinsic class
List : Collection
List
Collection
Object
append
appendUnique
car
cdr
countOf
countWhich
forEach
forEachAssoc
getUnique
indexOf
indexWhich
insertAt
intersect
lastIndexOf
lastIndexWhich
lastValWhich
length
mapAll
prepend
removeElementAt
removeRange
sort
sublist
subset
valToSymbol
valWhich
Inherited from Collection
:
createIterator
createLiveIterator
Inherited from Object
:
getPropList
getPropParams
getSuperclassList
isClass
isTransient
ofKind
propDefined
propInherited
propType
append (val) | systype.h[499] |
appendUnique (lst) | systype.h[491] |
car ( ) | systype.h[430] |
cdr ( ) | systype.h[431] |
countOf (val) | systype.h[478] |
countWhich (cond) | systype.h[481] |
forEach (func) | systype.h[448] |
forEachAssoc (func) | systype.h[557] |
getUnique ( ) | systype.h[484] |
indexOf (val) | systype.h[427] |
indexWhich (cond) | systype.h[442] |
insertAt (startingIndex, val, ...) | systype.h[535] |
Note that a list value argument will simply be inserted as a single element.
Returns a new list with the value(s) inserted.
intersect (other) | systype.h[424] |
lastIndexOf (val) | systype.h[458] |
lastIndexWhich (cond) | systype.h[469] |
lastValWhich (cond) | systype.h[475] |
length ( ) | systype.h[418] |
mapAll (func) | systype.h[415] |
[x, y, z]
Then the result list is
[func(x), func(y), func(z)]
prepend (val) | systype.h[522] |
removeElementAt (index) | systype.h[542] |
removeRange (startingIndex, endingIndex) | systype.h[551] |
sort (descending, ?, comparisonFunction, ?) | systype.h[516] |
If the 'comparisonFunction' argument is provided, it must be a callback function; the callback takes two arguments, and returns an integer less than zero if the first argument value is less than the second, zero if they're equal, and an integer greater than zero if the first is greater than the second. If no 'comparisonFunction' argument is provided, or it's provided and its value is nil, we'll simply compare the list elements as ordinary values. The comparison function can be provided for caller-defined orderings, such as ordering a set of objects.
sublist (start, len, ?) | systype.h[421] |
subset (func) | systype.h[401] |
valToSymbol ( ) OVERRIDDEN | reflect.t[323] |
valWhich (cond) | systype.h[455] |