summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/rouge-4.7.0/lib/rouge/demos/lasso
blob: 625112fe5714acadd4b5b3ad0251ddbec0c8de4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/**!
  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