13 lines
227 B
Plaintext
13 lines
227 B
Plaintext
|
/**!
|
||
|
Inserts all of the elements from #rhs into the array.
|
||
|
*/
|
||
|
define array->+(rhs::trait_forEach) => {
|
||
|
local(a = .asCopy);
|
||
|
#rhs->forEach => {
|
||
|
#a->insert(#1)
|
||
|
}
|
||
|
return (#a)
|
||
|
}
|
||
|
|
||
|
define array->onCompare(n::null) => 1
|