Remove unnecessary list coercion
sorted() can take any iterable. So simply pass the iterable instead of first coercing to a list. Inspired by Lennart Regebro's PyCon 2017 presentation "Prehistoric Patterns in Python". Available at: https://www.youtube.com/watch?v=V5-JH23Vk0I
Loading
Please register or sign in to comment