Skip to content

TypeScript code snippet – How to medrge lists of lists?

import itertools
a = [['a','b'], ['c']]
print(list(itertools.chain.from_iterable(a)))
See also  Python code snippet - How to run script as admin?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.