cosmologicon / pywat

Python wats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Fun with iterators" section is not a WAT

apragacz opened this issue · comments

The sorted function returns a list instead of an iterator. It's explicitly written in the documentation and therefore explains the behavior (you can compare lists structurally, but you can't do that obviously with the iterators without iterating them).

Hmm, I see this one was already mentioned in #10 and #23, so I'm closing this as a duplicate.