mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-25 18:25:37 +07:00
15 lines
298 B
Python
15 lines
298 B
Python
def bar(foo_new, i_new):
|
|
need_break = False
|
|
if i_new > 2:
|
|
foo_new = False
|
|
need_break = True
|
|
return foo_new, need_break
|
|
|
|
|
|
def main(indices):
|
|
foo = True
|
|
for i in indices:
|
|
foo, need_break = bar(foo, i)
|
|
if need_break:
|
|
break
|
|
return foo |