push multimethod
Methods
- push(arr:Arr, v:Any)
Append item to an array. Returns
arrExample
a=[1,2]; a.push(3) # a is now [1,2,3]
- push(al:ArrLike, val:Any) Source: stdlib.ngs:672
Push an element to the underlying array.
- push(hook:Hook, handler:UserDefinedMethod) Source: stdlib.ngs:783
Add unnamed handler. The hook is automatically named "pushed-N" where N is sequential integer. Returns
New hook name
- push(s:Stats, k:Any) Source: autoload/Stats.ngs:28
Increment the named counter Parameters
k the name of the counter to increment Example
Stats().push("a").push("a").push("b")["a"] # 2
- push(c:Doc::Container, p:Doc::Part) Source: autoload/Doc.ngs:70
EXPERIMENTAL! Do not use!
- push(s:Set, v:Any) Source: autoload/Set.ngs:19
Add an element to the set Returns
s
- push(t:Table, row_arr:Arr) Source: autoload/Table.ngs:68
Append given row to the table Returns
t
- push(t:Table, row_hash:Hash) Source: autoload/Table.ngs:76
Append given row to the table Returns
t