Skip to content
Commit a3467826 authored by Jon Dufresne's avatar Jon Dufresne
Browse files

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
parent 6ef15224
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment