Chris Angelico writes:

 > Insufficiently trolly - lacks walrus operator. :)
 > 
 > >>> l = [[1,2],[3,4],[5,6],[7,8],[9]]
 > >>> any(map((x:=[]).extend, l)) or x
 > [1, 2, 3, 4, 5, 6, 7, 8, 9]
 > 
 > ChrisA

This you?
https://mobile.twitter.com/Tr0llyTr0llFace/photo
:-)
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/QAUSIQYNUJOIPCSBFR63QKJYENPQJPAF/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to