`+` on `Iterable` is not it since it returns a lis...
# stdlib
v
+
on
Iterable
is not it since it returns a list
m
voddan:
List
is
Iterable
, so what's the problem with using
+
and treating result as
Iterable
?
v
The initial question implied that an iterator would be created which would delegate to the initial lists without allocating additional space
m
Ohh... the costs. Maybe I will have a project where I need to worry about them too.
v
If you do
l1 + l2 + l3 + l4 + l5
you allocate N^2 with lists. You may actually notice that 😉
1
m
N-1