Alias for addAll
Generally Opt could be added as a stream.
This overload is sligtly more efficient, but it is also required for mapped Opt expressions, where Opt type is harder to resolve and it would not compile.
Calls addAll and returns container
// Generic example val x = Idx.M(1, 2, 3) x ++= (4 <> 6) ++= Stream(7, 8, 9) x.stream.tp // Stream(1, 2, 3, 4, 5, 6, 7, 8, 9)
Alias for add
Calls add and returns container
// Generic example val x = Idx.M(1, 2, 3) x += 4 += 5 += 6 x.stream.tp // Prints Stream(1, 2, 3, 4, 5, 6)
Add many
Adds given stream of elements to target container
// Generic example val x = Idx.M(1, 2, 3) x.addAll(4 <> 6) x.addAll( Stream(7,8,9)) x.stream.tp // Stream(1, 2, 3, 4, 5, 6, 7, 8, 9)