|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The public interface to a native AmtientTalk table (an array). Extends the ATExpression interface as a Table may also be output by the parser as a literal.
Method Summary | |
ATTable |
base__oppls_(ATTable other)
[1,2,3] + [4,5] => [1,2,3,4,5] |
ATObject |
base_at(ATNumber index)
|
ATObject |
base_atPut(ATNumber index,
ATObject value)
|
ATNil |
base_each_(ATClosure clo)
Apply a closure to each element of the table |
ATTable |
base_filter_(ATClosure clo)
Keep only those elements of the table for which the closure evaluates to true. |
ATObject |
base_find_(ATClosure clo)
Return the index of the first element for which the given predicate returns true. |
ATNumber |
base_getLength()
|
ATText |
base_implode()
Implode the receiver table of characters into a text string |
ATBoolean |
base_isEmpty()
|
ATText |
base_join(ATText txt)
Join all the text elements of the receiver table into a text string where the argument is used as a separator |
ATTable |
base_map_(ATClosure clo)
Map a closure over each element of the table, resulting in a new table. |
ATTable |
base_select(ATNumber start,
ATNumber stop)
Select a subrange of the table: idx: 1 2 3 4 5 [a, b, c, d, e].select(2,4) => [b, c, d] |
ATObject |
base_with_collect_(ATObject init,
ATClosure clo)
Collect all elements of the table by combining them using the given closure. |
Methods inherited from interface edu.vub.at.objects.ATObject |
base__opeql__opeql_, base_init, base_new, meta_addField, meta_addMethod, meta_assignField, meta_assignVariable, meta_clone, meta_defineField, meta_doesNotUnderstand, meta_eval, meta_extend, meta_getDynamicParent, meta_getLexicalParent, meta_getStripes, meta_grabField, meta_grabMethod, meta_invoke, meta_isCloneOf, meta_isRelatedTo, meta_isStripedWith, meta_listFields, meta_listMethods, meta_lookup, meta_newInstance, meta_pass, meta_print, meta_quote, meta_receive, meta_resolve, meta_respondsTo, meta_select, meta_send, meta_share |
Method Detail |
public ATNumber base_getLength() throws InterpreterException
InterpreterException
public ATObject base_at(ATNumber index) throws InterpreterException
InterpreterException
public ATObject base_atPut(ATNumber index, ATObject value) throws InterpreterException
InterpreterException
public ATBoolean base_isEmpty() throws InterpreterException
InterpreterException
public ATNil base_each_(ATClosure clo) throws InterpreterException
InterpreterException
public ATTable base_map_(ATClosure clo) throws InterpreterException
InterpreterException
public ATObject base_with_collect_(ATObject init, ATClosure clo) throws InterpreterException
InterpreterException
public ATTable base_filter_(ATClosure clo) throws InterpreterException
InterpreterException
public ATObject base_find_(ATClosure clo) throws InterpreterException
InterpreterException
public ATText base_implode() throws InterpreterException
InterpreterException
public ATText base_join(ATText txt) throws InterpreterException
InterpreterException
public ATTable base_select(ATNumber start, ATNumber stop) throws InterpreterException
InterpreterException
public ATTable base__oppls_(ATTable other) throws InterpreterException
InterpreterException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |