added a method which returns all the stuff in an iterator
This commit is contained in:
1 parent
9b80dab77b
commit
7fc13bde48
3 files changed
+52
-4
No files matched your search
@@ -202,3 +202,11 @@ lst.append({})
|
||||
|
||||
#? dict() int() float() str()
|
||||
lst[0]
|
||||
|
||||
# should work with tuple conversion, too.
|
||||
#? dict() int() float() str()
|
||||
tuple(lst)[0]
|
||||
|
||||
# but not with an iterator
|
||||
#?
|
||||
iter(lst)[0]
|
||||
Reference in new issue
Block a user