
18 Oct
2021
18 Oct
'21
11:12 a.m.
+1 from me too. I just had the case yesterday of having to chain a bunch of lists and I naturally wrote it as [*lst for lst in lst_of_lsts] only to see my IDE complain :) I've known about itertools.chain() for a while, too. Yet, every time I have to chain iterables like this, for some reason, maybe because it feels so natural, this proposed syntax is always my first go-to.