possible to return dynamic arrays
This commit is contained in:
1 parent
9c09de6245
commit
d85184d387
5 files changed
+142
-8
No files matched your search
@@ -89,3 +89,19 @@ class Counter:
|
||||
for c in Counter(3, 8):
|
||||
#? int()
|
||||
print c
|
||||
|
||||
# -----------------
|
||||
# tuples
|
||||
# -----------------
|
||||
def gen():
|
||||
if a:
|
||||
yield 1, ""
|
||||
else:
|
||||
yield 2, 1.0
|
||||
|
||||
|
||||
a, b = next(gen())
|
||||
#? int()
|
||||
a
|
||||
#? str() float()
|
||||
b
|
||||
Reference in new issue
Block a user