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:2083
Push an element to the underlying array.
- push(s:Set, v:Any) Source: stdlib.ngs:2406
Add an element to the set Returns
s
- push(hook:Hook, handler:UserDefinedMethod) Source: stdlib.ngs:2585
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: stdlib.ngs:5568
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/globals/Doc.ngs:70
EXPERIMENTAL! Do not use!
- push(t:Table, row_arr:Arr) Source: autoload/globals/Table.ngs:66
Append given row to the table Returns
t
- push(t:Table, row_hash:Hash) Source: autoload/globals/Table.ngs:74
Append given row to the table Returns
t
- push(t:Table, row_arr:Arr) Source: autoload/globals/Table2.ngs:206
Append given row to the table Returns
t
- push(t:Table, row_hash:AnyOf(Hash, HashLike)) Source: autoload/globals/Table2.ngs:214
Append given row to the table Returns
t