We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cf069c5 + 45dbb8f commit 3565ebdCopy full SHA for 3565ebd
1 file changed
one_liners.rst
@@ -71,6 +71,10 @@ is a simple example:
71
a_list = [[1, 2], [3, 4], [5, 6]]
72
print(list(itertools.chain.from_iterable(a_list)))
73
# Output: [1, 2, 3, 4, 5, 6]
74
+
75
+ # or
76
+ print(list(itertools.chain(*a_list)))
77
+ # Output: [1, 2, 3, 4, 5, 6]
78
79
80
**One Line Constructors**
0 commit comments