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:1523
Push an element to the underlying array.
- push(s:Set, v:Any) Source: stdlib.ngs:1726
Add an element to the set Returns
s
- push(hook:Hook, handler:UserDefinedMethod) Source: stdlib.ngs:1885
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:4777
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)
EXPERIMENTAL! Do not use!
- push(t:Table, row_arr:Arr)
Append given row to the table Returns
t
- push(t:Table, row_hash:Hash)
Append given row to the table Returns
t