Note that this works similar to Semigroup[Map[Int,T]] not like Semigroup[List[T]]
This does element-wise operations, like standard vector math, not concatenation,
like Semigroup[String] or Semigroup[List[T]]
If l.size != r.size, then only sums the elements up to the index min(l.size, r.size); appends
the remainder to the result.
Linear Supertypes
Semigroup[IndexedSeq[T]], Serializable, AnyRef, Any
Note that this works similar to Semigroup[Map[Int,T]] not like Semigroup[List[T]] This does element-wise operations, like standard vector math, not concatenation, like Semigroup[String] or Semigroup[List[T]]
If l.size != r.size, then only sums the elements up to the index min(l.size, r.size); appends the remainder to the result.